Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: mnmonu
1,408
Posted By balajesuri
sed -i...
sed -i "s:'/data1/test.log':'$ORACLE_HOME/test.log':" file
1,648
Posted By ygemici
try this ;) # cat file1 ...
try this ;)

# cat file1
"0001"~"name"~"bb"~"20.25"~"0010"
~"abc"~"0002"~"name"~"dd"~"35.50"~"25"~
"xxx"~"0003"~"name"~"aa"~"21.3

5"~"0056"~"ijk"~



"0001"~"name"~"bb"~"20.25"~"0010"...
1,648
Posted By Scrutinizer
Another one: awk 1 RS=\~ infile | awk 'NF{if...
Another one:
awk 1 RS=\~ infile | awk 'NF{if (/name/)print RS;print p;p=$0}END{print p}' | awk '{gsub(ORS,"~");print $0 "~"}' RS=
Showing results 1 to 3 of 3

 

Featured Tech Videos

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