Search Results

Search: Posts Made By: deepaktanna
30,237
Posted By deepaktanna
In fact one of the other methods i would think...
In fact one of the other methods i would think works is something like this
1) Create a file that has vi commands

CommandsOfVi.script
vi cmd to goto line 1
vi cmd to insert 'Header Text'
vi...
30,237
Posted By deepaktanna
The solution which Ygor provided works!! I...
The solution which Ygor provided works!!

I would like to understand how it works though

thanx anyways
30,237
Posted By deepaktanna
hi ddreggors/jim i tried this - and it...
hi ddreggors/jim

i tried this - and it fails with the below error

sed -i '1 i \HeaderText' ExtractDataFile.txt
sed: illegal option -- i

The system is a SunOS ussun1l 5.8 Generic_117350-60...
30,237
Posted By deepaktanna
insert a header in a huge data file without using an intermediate file
I have a file with data extracted, and need to insert a header with a constant string, say: H|PayerDataExtract

if i use sed, i have to redirect the output to a seperate file like

sed ' sed...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 02:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy