Search Results

Search: Posts Made By: cgk1983
2,639
Posted By cgk1983
Hi Kumaran, Looks like there is some problem...
Hi Kumaran,
Looks like there is some problem with strftime
vi time.awk
"time.awk" 15 lines, 449 characters
{
split($2,sdate,"/")
split($3,stime,":")
split($4,edate,"/")
split($5,etime,":")...
2,639
Posted By cgk1983
Yes Ahamed
Yes Ahamed
2,639
Posted By cgk1983
Job Runtimes by AWK
Hi Kumaran,

Instead of writing awk script is there any way we can do on the command line like i am able to print other columns. ??
awk '{ print $1 "\t\t\t\t " $2 " " $3 " " $4 " " $5 " " $6 }'
2,639
Posted By cgk1983
Job Runtimes by AWK
Hi ,

I need to find runtime of jobs.

I have written below script to get start and end times for a list of jobs.

#!/bin/bash

InputFile_Name=/var/tmp/cgk/pre2_oper_status_7amcheck_jobs...
9,441
Posted By cgk1983
But how that does makes differrent it should work...
But how that does makes differrent it should work with every column right can u just briefly explain and let me know to sort with any column header present in the output.

Please do the needful
...
9,441
Posted By cgk1983
But if sort with columns having single word...
But if sort with columns having single word letter then it is not sorting exactly please see below if i try to sort with column C


[liveuser@localhost ~]$ ps -fuliveuser|awk '{print $4,$0}' |sort...
9,441
Posted By cgk1983
hi radoulov, cut -d\ is giving error ...
hi radoulov,

cut -d\ is giving error

[liveuser@localhost ~]$ awk '{print $6 , $0}' gaut.txt |sort -n |cut -d\ -f2-
cut: the delimiter must be a single character
Try `cut --help' for more...
9,441
Posted By cgk1983
Sort by Column Headers
Hi All,

I am new to UNIX can you please help me to sort a file with different columns

my file looks like this

[liveuser@localhost ~]$ cat gaut.txt
UID PID PPID PGID SID C STIME...
1,316
Posted By cgk1983
Need Script for the same
Hi zaxxon,

Thx for u r post i need to do extra business logic in the script but initially first i need to pass the argument (ie filename ) to the script so that i can replace in u r command given...
1,316
Posted By cgk1983
Dyanamically searching a file
I need a shell script to search different files in a directory i will pass the filename as argument to shell script
Please help me regarding this
Showing results 1 to 10 of 10

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