Search Results

Search: Posts Made By: pparthiv
864
Posted By balajesuri
awk -F';' 'NR==FNR{a[$0];next} $6 in a...
awk -F';' 'NR==FNR{a[$0];next} $6 in a {$12="R"}'1 OFS=';' file2 file1
1,919
Posted By agn
Try, $ nawk -F '|' 'BEGIN { i=1;OFS="|" }...
Try,


$ nawk -F '|' 'BEGIN { i=1;OFS="|" } NR==FNR { _[i]=$1; i++ ; next } { $(NF-1)=_[FNR]; print }' file_1 file_2
1,919
Posted By guruprasadpr
Hi sed 's/\(.*\)|\(.*|\)/\1/' file2 | paste...
Hi

sed 's/\(.*\)|\(.*|\)/\1/' file2 | paste -d"|" - file1 | sed 's/.*/&|/'

Guru.
2,933
Posted By vgersh99
sed 's/\([^|][^|]*|\)\(.*\)/\2\1/' myFile
sed 's/\([^|][^|]*|\)\(.*\)/\2\1/' myFile
2,933
Posted By cola
Please explain the regular expression.
Please explain the regular expression.
2,933
Posted By jecaestevez
Problem resolved
First create a new fich without the head

$ cut -d"|" -f2-25 asdf>fichNew

Sencond create a fich with the firt part what it will the last
$ cut -d"|" -f1 asdf>head

And paste the first part...
Showing results 1 to 6 of 6

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