Search Results

Search: Posts Made By: sigtor77
3,277
Posted By sigtor77
yes, I should be more specific... cat...
yes, I should be more specific...

cat `pwd`/csv/LightningProbability30minAlignmentErrorTable_*.csv | sed 's/,/ /g' | awk '{print int(100*$5)}' | grep "^0" | wc -l

this prints out the number of...
14,881
Posted By sigtor77
use the stream editor, sed. sed -i...
use the stream editor, sed.

sed -i 's/bin\/bash/bin\/csh/g' /etc/passwd

the back slashes are escape characters for the front slashes. The g reperesents 'global,' and will change every...
14,881
Posted By sigtor77
try this: cat /etc/passwd | grep "bash" | wc...
try this:

cat /etc/passwd | grep "bash" | wc

or

cat /etc/passwd | grep "bash" | wc -l

if you just want the count.
3,277
Posted By sigtor77
assigning complicated input to a variable
I cannot seem to correctly assign this line of code to a variable:

HITS=`pwd`/csv/LightningProbability30minAlignmentErrorTable_*.csv | sed 's/,/ /g' | awk '{print int(100*$5)}' | wc

This does...
Showing results 1 to 4 of 4

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