Search Results

Search: Posts Made By: crunchie
12,359
Posted By pludi
awk -F/ '{print $NF}'
awk -F/ '{print $NF}'
2,466
Posted By methyl
I don't think that this script does what you...
I don't think that this script does what you think.

The for-do-done loop does nothing except cause the "tar -tvf" to run once. The same would happen if the for-do-done loop was not there.

The...
2,466
Posted By Scrutinizer
Hi, This:for jar in 'cat jar_file.tar'; do .. ...
Hi, This:for jar in 'cat jar_file.tar'; do
..
doneHas no effect whatsoever. You can leave those two lines out IMO.
tar -tvf jar_file.tar | grep -v Plane > new_file
3,530
Posted By Scrutinizer
Try: sed 's/[^ \t][^ \t]*[ \t]//4;s/[^...
Try:
sed 's/[^ \t][^ \t]*[ \t]//4;s/[^ \t_]*_//;s/_.*\(.\)$/ \1/;s/[^X]$//' infile
Does the awk work?
3,764
Posted By Franklin52
Try this: awk '{split($NF,a,"_");print...
Try this:
awk '{split($NF,a,"_");print $1,$2,$3,$5,$6,a[2]}' file
3,212
Posted By methyl
To get the exact required output, you need to...
To get the exact required output, you need to specify the delimiter in "paste" (in this case a space character).
paste -d " " file1 file2
Showing results 1 to 6 of 6

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