Search Results

Search: Posts Made By: steveramsey
1,964
Posted By steveramsey
Thank you Vino. Also alot easier to do it this...
Thank you Vino. Also alot easier to do it this way.
1,964
Posted By steveramsey
Simple Sed
Hello. Just trying to write this line to an empty file. CAT shows nothing was written. Any suggestions or answers?

#!/bin/bash -x
THIS=FIRSTLINE
sed '1w '$THIS'' testfile
cat testfile
...
35,092
Posted By steveramsey
Thanks. This worked. Somewhat.. I added...
Thanks.

This worked. Somewhat.. I added atleast 1 line to testfile.txt. But in production i will need to create this line first before there is anything else. Is there a way to do this in the...
35,092
Posted By steveramsey
I was only touching file to create on the fly. I...
I was only touching file to create on the fly. I need to use sed. The '1i' and the 'i' in the format i posted does not work.
35,092
Posted By steveramsey
Insert Text With Sed
Hello. Trying to insert text at line 1 and after last line of file. I have searched posts but nothing seems to work. I keep getting extra characters error or nothing gets inserted into the file.
...
8,385
Posted By steveramsey
Thanks Penguin. I did something like that. The...
Thanks Penguin. I did something like that. The input file will have comments embedded so first I get rid of all the junk and then dynamically create arrays and populate.

idx=1
while read...
8,385
Posted By steveramsey
Nawk Split
Hello. I have a input file in this format:
line1data :: line1data :: line1data
line2data :: line2data :: line2data

I would like to split each lines data element into an array:
...
Showing results 1 to 7 of 7

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