10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to built a generic code to remove columns from file. Column number will be passed at run time.I may have multiple number like 2,5,10 so Can you please help.
I know how to remove when we know column number but I want a generic code where column number will be passed at run time.
... (14 Replies)
Discussion started by: Amit Joshi
14 Replies
2. Shell Programming and Scripting
Hello all,
I'm in the process of writing a script, and I need to be able to add columns of time in the following format (time elapsed Net Backup logs):
000:01:03
000:00:58
000:00:49
Does anyone have a way of converting and/or adding timestamps such as these accurately?
Thanks in... (9 Replies)
Discussion started by: LinuxRacr
9 Replies
3. Shell Programming and Scripting
Hello!
I'm new to linux programming. It would be great if you could help me out.
I have a matrix of kind:
10 30.0
20 190.5
40 180.
50 320.5
I would like
to substract 180 from column 2 If the value is >180
to add 180 for column 2 If the value is <180
nothing if it is equal to... (3 Replies)
Discussion started by: lovelinux
3 Replies
4. Ubuntu
Hi,
Commands ps -A include four parameters are PID, TTY, TIME and CMD. I can not found pathnames of TTY and TIME which I can read from file in C language to get information display on screen. Thank you!
Ex:
PID TTY TIME CMD
1 ? 00:00:01 init (2 Replies)
Discussion started by: newbie_member
2 Replies
5. Shell Programming and Scripting
Nawk ‘BEGIN {printf “0t%d=Y\n”,srand () -1800}' | adb
I know that printf is printing the value in %d which is for a day of the month and subtracting the value by -1800 (30 minutes).
So if date is 14:25:45 subtracting from 1800 then time will equal to 13:55:45
I also know that srand () is... (1 Reply)
Discussion started by: INHF
1 Replies
6. Shell Programming and Scripting
Hello,
I have the following piece of code:
roleName
=`cat $inputFile | awk -F';' '{ print $1 }'`
roleDescription
=`cat $inputFile | awk -F';' '{ print $2 }'`
roleAuthProfile
=`cat $inputFile | awk -F';' '{ print $3 }'`
mappedUserID (5 Replies)
Discussion started by: pr0tocoldan
5 Replies
7. Shell Programming and Scripting
Hi,
I want to subtract 'n' days from the current timestamp in a k shell script. Is there any inbuilt function to do it
or any workaround solution to get the date. And I want the output to be in YYYY:MM:DD HH:MM:SS format. Please help.
Thanks in advance. (4 Replies)
Discussion started by: Suryaaravindh
4 Replies
8. Solaris
I've start and end time in two columns. How can I substract time from column 2 and column 1 and receive output in another file 'd' ?
$ cat c
12:55:04 2:03:56
2:03:56 3:20:17
14:00:00 13:05:00 (1 Reply)
Discussion started by: alps0206
1 Replies
9. Shell Programming and Scripting
Hi,
I have two files with with similar row names. For the names that match, I want to substract the values from each column.
eg (files are tab separeted).
FILE1:
hhh 2 4 5
KKL 2 3 2
LLP 2 1 2
FILE2:
hhh 3 1 1
KKL 2 1 1
UUI 1 1 1 (10 Replies)
Discussion started by: kylle345
10 Replies
10. Shell Programming and Scripting
Hi
having a file as follows
MediaErr.log
84 Server1 Policy1 Schedule1 master1 05/08/2008 02:12:16
84 Server1 Policy1 Schedule1 master1 05/08/2008 02:22:47
84 Server1 Policy1 Schedule1 master1 05/08/2008 03:41:26
84 Server1 Policy1 ... (1 Reply)
Discussion started by: karthikn7974
1 Replies