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
Should I upgrade to ZoneAlarm Extreme to protect against Gumblar?
Using tool tip
Date Function
VPN client to PIX failure
unable to receive mails from external domain
AWK and splitting a string into an array
Motorola Razr Phone sync with outlook
How to start/stop FTP server from command line
WebTrends tracking - 301 redirect in IIS environment - Want to track 301 redirected domain visits
Bash: curl and redirected url