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.
grep and tabulator
Name: mgonzalo Date: March 15, 2007 at 03:32:48 Pacific OS: SunOS CPU/Ram: sparc SUNW Product: Ultra-250
Comment:
I have to look for in a file an expression of the type:
V[tab]0707xxxxxxxxxx
and if I make it in interactive it works
grep "V[tab]0707xxxxxxxx" file
but inside a cshell not
Thanks
"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones
Summary: The [ -z "$variable" ] part checks for the existence of a variable. testvar=`cat $dir/ftp_session.log | egrep -v "bytes sent" | egrep -v "bytes received" | cut -c1 | grep '[4,5]'` egrep is similar to ...
Summary: hi, i have few question regarding the using of grep to search for a word in the /usr/share/dict/words directory 1. how can i find all the words containing both an "x" and a "k" using grep -E. i try us...
Summary: Hi You can use the grep and cut commands as given below: grep '/~*/' <.txt file name> | cut -d '~' -f 2 | cut -d '/' -f 1 Note : This command works , if your text file contains the line of format ...