Search Results

Search: Posts Made By: BigCroyd
12,947
Posted By BigCroyd
Did try this also: $ cat file1 head1 ...
Did try this also:


$ cat file1
head1
head2
head3
head4
$ cat file2
tail1
tail2
tail3
tail4
$ sed '1i\' <(sed -n 1,2p file1) file2
sed: couldn't write -1 items to stdout: Success
$...
12,947
Posted By BigCroyd
Thank you bakunin for your comprehensive post. I...
Thank you bakunin for your comprehensive post. I will explore this option and hopefully create a cleaner solution

---------- Post updated at 12:37 PM ---------- Previous update was at 12:30 PM...
12,947
Posted By BigCroyd
Hi hergp, I tried your solution but...
Hi hergp,

I tried your solution but strangly it inserts the txt "/dev/fd/63" into my file instead of the header record. If I extract the sed command in the () it outputs correctly. Not sure...
12,947
Posted By BigCroyd
Output of sed command to another sed command
Hi All,

I'm relatively new to Unix scripting and am trying to get my head around piping.

I'm trying to take a header record from one file and prepend it to another file. I've done this by...
Showing results 1 to 4 of 4

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