Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
cut data backwards
Name: nimi Date: July 18, 2007 at 02:26:41 Pacific OS: NA CPU/Ram: NA Product: NA
Comment:
I use the following to get the value after the 5th underscore which is 4 BSC403_JAIN03|3410_PantaiAceh_PCEHM1_4_97|
BSC_ID=`echo $DATA | cut -f5 -d"_"`
How do I read the same row but from backwards? I want the first value after the last underscore which is again 4. The reason is some of the record formats are not consistent.
Summary: This solution prepends a 4-digit group number to each line to control the first sort level. That data is then piped into the sort command, then the sorted data is piped into cut to delete the first ...
Summary: Hello, This should be very easy for you gurus. I have this file with lots of data the fist column is time start with 0:0:0 and the second coulmn is color Red. and this repeat 300 times. so this is how...
Summary: The more specific you can be about your data, the better answers you will get. Following uses awk to isolate a specific line in both file1 and file2, and pulls one field from each of those lines. # !/...