Search Results

Search: Posts Made By: soemac
2,537
Posted By soemac
Oh my God, I never used this -o option. I...
Oh my God, I never used this -o option.

I was going through awk manual now and this grep option is returning
exactly what I need!

Thanks yongitz, You made my day.

Tomo
2,537
Posted By soemac
Hi Thanks for the answer, but it returns a...
Hi

Thanks for the answer, but it returns a word count.
I should have given a different file content.

black:34104 tomonorisoejima$ cat tomo
tomo apple apple
2,537
Posted By soemac
count a occurrence
I am looking to get a output of "2 apple found" from the awk command below.

black:34104 tomonorisoejima$ cat tomo
apple apple
black:34104 tomonorisoejima$ awk '/apple/ {count++}END{print count...
2,999
Posted By soemac
how to suppress list number from history command output
i run history command and I want to eliminate the list number.
So far this perl script works as long as the list is a exact 3 character
long.

cat dd | perl -pe 's,\d{3},,'
70 export...
2,703
Posted By soemac
downloading a folder
I know how to download a file from a ftp server through shell script.
But when there is a folder inside the directory you are in, I could not
download them.

How would you write it?

I can...
5,997
Posted By soemac
You gotta do debugging yourself. ...
You gotta do debugging yourself.

${array[$z]} could be zero.
#do this
echo ${array[$z]}
2,138
Posted By soemac
$ cat filename | xargs -n5 | tr ' ' '+' | bc 268
$ cat filename | xargs -n5 | tr ' ' '+' | bc
268
14,608
Posted By soemac
Thanks everyone. I should have mentioned...
Thanks everyone.

I should have mentioned that why I used head first.
The list contained number of lines for easy reading.

So in actual case, I of course have to remove head
14,608
Posted By soemac
cat and loop
Hi I have a simple code that I want to execute.
out=out.txt
for f in `cat list.txt | head -1`; do

echo $f >> $out
echo "sleep 5" >> $out
done

cat list.txt | head -1

wget -q -O -...
3,427
Posted By soemac
Go to directory where those files are and run...
Go to directory where those files are and run this.

find . -maxdepth 1 -mtime +15 -ls
3,135
Posted By soemac
Hi Thanks for all. My big linux book did...
Hi

Thanks for all. My big linux book did not really cover this subtract trick of awk.
3,135
Posted By soemac
how would you solve this problem?
I have a file process.txt

I wanted to just grab data in "process" column.

Name process process_id status

Adminserver ...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy