Search Results

Search: Posts Made By: caciing_help
1,752
Posted By birei
Hi, Another solution using 'gawk': $...
Hi,

Another solution using 'gawk':

$ awk --version | head -1
GNU Awk 3.1.8
$ awk --posix 'BEGIN { FS="([[:graph:]]+[[:blank:]]+){8}" } { printf "%s\n", $2 }' infile
this is a test.txt
this...
1,752
Posted By ghostdog74
you should Franklin's solution. nawk ...
you should Franklin's solution.

nawk '{sub(".*"$8 FS,"");gsub(" ","_")}1' file
1,752
Posted By Franklin52
Have you tried this? /usr/xpg4/bin/awk...
Have you tried this?
/usr/xpg4/bin/awk '{sub(".*" $8 FS,x)}{print $0 "~"}' file
1,752
Posted By Scrutinizer
Try: /usr/xpg4/bin/sed 's/\([^ ]*...
Try:
/usr/xpg4/bin/sed 's/\([^ ]* *\)\{8\}//;s/$/~/' infile
1,752
Posted By Scrutinizer
Try /usr/xpg4/bin/awk
Try /usr/xpg4/bin/awk
1,752
Posted By Scrutinizer
cut -c58- file
cut -c58- file
1,752
Posted By michaelrozar17
Through sed.. sed 's/.*[0-9][0-9]\+...
Through sed..
sed 's/.*[0-9][0-9]\+ \(.*\)/\1~/' inputfile > outfile
1,752
Posted By Franklin52
Gives this as output: $ awk...
Gives this as output:

$ awk '{for(i=1;i<=8;i++){$i=""};}1' file
this is a test.txt
this test2 .txt
this is test 2.txt
$
and also truncates the spaces.
...
1,752
Posted By ghostdog74
awk '{for(i=1;i<=8;i++){$i=""};}1'...
awk '{for(i=1;i<=8;i++){$i=""};}1' file
Showing results 1 to 9 of 9

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