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.
Bash: sed/grep/awk sections of file
Name: Six Date: February 12, 2004 at 20:11:12 Pacific OS: Gentoo CPU/Ram: 1.3/512
Comment:
Hi. Sed/awk/grep, etc are scary to me. Is it possible to search a text file (which is an address book) for $name, and output all the lines from that to, say, the next line that looks like this: ------- ?? if I'm not that lucky, can I get it to output the following 5 lines from $name?
Summary: stat() is great! Nothing is wrong with MEPIS! The Python docs make no reference to stat() under the file object IO sections... rather it is found (I went back and checked) under Chapter 6.1 (OS), sect...
Summary: Hello all, I need to create a bash script that looks at a file and returns the block sizes. I have this and it's not right. filename=$HOME/bin/BOUTPUT awk '$1 !~ /total/ {printf "%-32s %s\n", $9,$3 ...
Summary: If you have an WC command ported for windows, you could just run this: unzip -l zipfile.zip | wc -l The output may not be exact, but if you thrown in an additional GREP or FINDSTR you can easily get t...