Search Results

Search: Posts Made By: anand2308
2,879
Posted By rbatte1
This would suggest that you are on a...
This would suggest that you are on a multi-processor system and the process running is multi-threaded to take advantage of the hardware. You will only get up to 100% per processor, but they will be...
28,168
Posted By itkamaraj
$ DAY_BEFORE_YEST=`TZ="GMT+48" date +'%m/%d/%Y'` ...
$ DAY_BEFORE_YEST=`TZ="GMT+48" date +'%m/%d/%Y'`
$ echo $DAY_BEFORE_YEST
12/18/2012
28,168
Posted By ningy
perl -le 'print scalar localtime (time() -...
perl -le 'print scalar localtime (time() - 48*60*60);' |awk '{print $2 ,$3}'
2,587
Posted By Jotne
with awk var=$(awk '/Configuration flow done/...
with awk
var=$(awk '/Configuration flow done/ {print;exit}' filename)
the exit makes awk exit after first find.
2,587
Posted By Scott
One with sed $ sed -n "/Configuration flow...
One with sed

$ sed -n "/Configuration flow done/{p;q;}" filename
2012-12-04 13:00:15 minor dmsc: Configuration flow done for "919852104962"


Some grep's also have an option (i.e. -m NUM) to...
2,587
Posted By rbatte1
Try it without the cat var=`grep -i...
Try it without the cat
var=`grep -i 'Configuration flow done' filename | head -1`



Robin
Liverpool/Blackburn
UK
2,587
Posted By Vikram_Tanwar12
can you try something like this. cat...
can you try something like this.

cat filename | grep -i 'Configuration flow done' | head -1
4,053
Posted By itkamaraj
sudo apt-get install gtkdialog
sudo apt-get install gtkdialog
Showing results 1 to 8 of 8

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