Search Results

Search: Posts Made By: jat
3,403
Posted By jat
Thank you . Its work!
Thank you . Its work!
3,403
Posted By jat
Unix egrep
I can not find error why my script does not work .


egrep -n "is" $egreplinewhere egrepline = "filename1 ...filenameN"supposed result:
filename1:linenumber: matched line.
....
2,872
Posted By jat
thank you
Thank you very much for all of you. I have been struggling it with sleepless night for 10 days.

Thanks again
2,872
Posted By jat
Thks. I use $ awk 'BEGIN {OFS=":"}{ print...
Thks.
I use
$ awk 'BEGIN {OFS=":"}{ print $2,$1,$3}' "res.out"

input
abc 123 the brown dog

result is
123 : abc : the

"brown dog" Rest of the line does not appear. Because awk think " "...
2,872
Posted By jat
Thank you . But still some problem, I have 3...
Thank you . But still some problem,

I have 3 fields in "res.out" file

(character field numeric field character field)
------------------------------------------------------
abc 123 this is...
2,872
Posted By jat
How to swap column?
I am new to Unix. I try to match searchstring in 4 files and display as
file : matchline number : line match with searchstring

My code is
sed -n "/$line/ p" $1 | sed -e "a$1" | sed '{ N s/\n/...
Showing results 1 to 6 of 6

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