Search Results

Showing results 1 to 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: ghostdog74 ; Forum: Shell Scripting and child forums
Forum: Shell Scripting Apr 14th, 2008
Replies: 3
Views: 1,286
Posted By ghostdog74
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
Posted By ghostdog74
no need to use cat

uuencode $file $file | /usr/bin/mailx -s "TEST"
Forum: Shell Scripting Mar 7th, 2008
Replies: 8
Views: 2,532
Posted By ghostdog74
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
Posted By ghostdog74
# echo $HTML | sed 's/<html><body>\(.*\)<\/body><\/html>/\1/'
OK
Forum: Shell Scripting May 13th, 2007
Replies: 9
Solved: awk script
Views: 6,306
Posted By ghostdog74
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
Solved: awk script
Views: 6,306
Posted By ghostdog74
you can invoke the awk script again, or just use cp,
like: cp try2.txt <newfilename>
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC