Forum: Shell Scripting Apr 14th, 2008 |
| Replies: 3 Views: 1,286 don't use useless cat with while loop
while read -r line
do
#processing
done < "file"
'
anyway, here's another way to solve your problem |
Forum: Shell Scripting Mar 26th, 2008 |
| Replies: 9 Views: 2,318 no need to use cat
uuencode $file $file | /usr/bin/mailx -s "TEST" |
Forum: Shell Scripting Mar 7th, 2008 |
| Replies: 8 Views: 2,532 awk 'BEGIN{FS="[]].[[]|[[]|[]]"}
{
gsub(/id|\"/,"",$13)
split($3,a,"/")
gsub("tag","",$16)
print $13,a[1],$7,$16
}' file |
Forum: Shell Scripting Jan 15th, 2008 |
| Replies: 3 Views: 11,483 # echo $HTML | sed 's/<html><body>\(.*\)<\/body><\/html>/\1/'
OK |
Forum: Shell Scripting May 13th, 2007 |
| Replies: 9 Views: 6,306 yes, you can put those into a script. use loops to create a counter for your files.
eg psedocode
count=1
awk '{print NR SEP $0}' SEP="/ " exfile1.txt
for counter in the range 1 to the number... |
Forum: Shell Scripting May 13th, 2007 |
| Replies: 9 Views: 6,306 you can invoke the awk script again, or just use cp,
like: cp try2.txt <newfilename> |