Search Results

Search: Posts Made By: legolad
1,246
Posted By Shell_Life
Create a file with all your sed statements as: ...
Create a file with all your sed statements as:
s/TSTARTO2GPRSEVENTAPNACCSUM_1/TSTARTO2GPRSEVENTAPNACCSUM_24/g
s/O2GPRSEVENTAPNACCSUM_1/O2GPRSEVENTAPNACCSUM_24/g
......
1,246
Posted By hartz
To parse the file as a sed script, it needs to...
To parse the file as a sed script, it needs to not contain the "sed " commands.

To use this method, first create a sed script file from those lines using

sed 's/sed //' < oldscript...
2,734
Posted By bartus11
[root@rhel2 ~]# cat file <TABLE...
[root@rhel2 ~]# cat file
<TABLE name="TotalEventSemiSum_13>
</TABLE>
<TABLE name="TotalEventSemiSum_22>
</TABLE>
<TABLE name="TotalEventSemiSum_57>
<ROW>
</ROW>
</TABLE>
<TABLE...
2,734
Posted By bartus11
Try: perl -0pe 's/\s+\d+\s+<TABLE...
Try: perl -0pe 's/\s+\d+\s+<TABLE name=[^>]*>\n(\s+\d+\s+<ROW>\n\s+\d+\s+<\/ROW>\n)?\s+\d+\s+<\/TABLE>//g' file
I hope you can see now that simplifying sample data not always help getting the...
1,877
Posted By clx
Like this? echo '<text1><text2></' | awk -F...
Like this?

echo '<text1><text2></' | awk -F '<' '{print $0$2}'
1,877
Posted By guruprasadpr
Input: $ cat file 1 <text1><text2></ 2...
Input:
$ cat file
1 <text1><text2></
2 <text3><text4></
3 <text5><text6></
4 <text7><text8></

Output:
$ awk -F '[<.*>]' '{print $0 $2">"}' file
1 <text1><text2></text1>
2...
1,026
Posted By radoulov
Try: sort infile | uniq -c
Try:

sort infile | uniq -c
Showing results 1 to 7 of 7

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