Search Results

Search: Posts Made By: sumanthupar
1,318
Posted By RavinderSingh13
Hello sumanthupar, In awk value of variables...
Hello sumanthupar,

In awk value of variables doesn't work like shell ones. Not sure about complete requirement but could you please try following and let me know if this helps.

awk...
717
Posted By Don Cragun
Try: read var < file printf '%s\n'...
Try:
read var < file
printf '%s\n' "${var%.txt}_20140923.txt"
or, if you want today's date rather than the constant string you specified:
read var < file
printf '%s\n' "${var%.txt}$(date...
1,439
Posted By CarloM
'for' will loop over items based on IFS, which is...
'for' will loop over items based on IFS, which is whitespace by default.

Since you actually appear to want to process the file by line rather than just by field, it's probably easiest to just use...
36,470
Posted By Don Cragun
Some of us were confused by your use of the term...
Some of us were confused by your use of the term grep.

The name of the grep utility is a play on the ed utility's Global search for a Regular Expression and Print matching lines command:
g/RE/p...
36,470
Posted By SriniShoo
I have provided 3 for n, you can change as per...
I have provided 3 for n, you can change as per your requirement

awk 'NR == n' n='3' file
36,470
Posted By Makarand Dodmis
tryawk 'NR==3{ print; }' filename or sed -n...
tryawk 'NR==3{ print; }' filename or sed -n '3,3p' filenameorawk 'NR==3' filename
2,938
Posted By Don Cragun
Try changing: if( $out -gt $float1 )to: if [...
Try changing:
if( $out -gt $float1 )to:
if [ $out -gt $float1 ]
Forum: AIX 10-09-2013
32,106
Posted By sea
echo $(basename $(ps -ef | grep 3539052 | grep -v...
echo $(basename $(ps -ef | grep 3539052 | grep -v grep|awk '{print $8}'))Should do the trick
Forum: AIX 09-11-2013
1,477
Posted By smoofy
You can periodically with cron check if process...
You can periodically with cron check if process is up via ps command and if not you can send an email to him for example.

ps auxx | grep sleep | grep -v grep
if [ $? == 1 ]
then
echo "Sleep...
Forum: AIX 08-26-2013
1,633
Posted By System Admin 77
@Sumathupar, you can use any of the...
@Sumathupar,

you can use any of the following commands to see the CPU utilization.
vmstat, sar , topas, iostat ==> look for %entc (entitled capacity)usage

ps aux ==> shows CPU and memory...
Forum: AIX 08-22-2013
2,726
Posted By in2nix4life
topas command - similar to top on Linux nmon...
topas command - similar to top on Linux
nmon command - basically the topas command on steriods
Showing results 1 to 11 of 11

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