Microsoft
Software
Hardware
Network
Question : how to concatenate into the starting of a file ?
if I do
echo "first line" >> /tmp/1
then it will add at the last line of file /tmp/1,, how can I add(concatenate) on the first line of file /tmp/1 ??
Answer : how to concatenate into the starting of a file ?
A version that will work on all Unix/Linux systems is
(echo "first line" ; cat /tmp/1) >/tmp/$$ && mv /tmp/$$ /tmp/1
Random Solutions
Question on Log shipping setup out of sync alert
Get-WmiObject win32_operatingsystem not working properly thru Windows XP Firewall
Excel - Error loading DLL
Automatically Scheduled Mail
Printing out gridlines on a report
Find a function which best suits the data
Query contains an outer-join request that is not permitted - Sybase to SQL Server conversion
Advice for setting up PC in Hotel Business Center
preloading a flv movie prior to start of .swf file
Office 2007 Mail Merge Issue between Word and Access