9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have two dates in below format, how would I find the hours difference between the two dates. Im using AIX and ksh.
Current date : Wed May 17 14:34:41 SGT 2017
File date : Thu Apr 27 20:52:41 SGT 2017 (3 Replies)
Discussion started by: simpltyansh
3 Replies
2. Shell Programming and Scripting
I am having two csv files i need to compare these files and the output file should have the information of the differences at the field level.
For Example,
File 1:
A,B,C,D,E,F
1,2,3,4,5,6
File 2:
A,C,B,D,E,F
1,2,4,5,5,6
out put file: (12 Replies)
Discussion started by: karingulanagara
12 Replies
3. Shell Programming and Scripting
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Discussion started by: thibodc
1 Replies
4. Shell Programming and Scripting
Hi all;
Pretty green to perl programming; been searching high and low for a perl (preferably) or unix script that will compare 2 CSV strings in the same file that are separated buy the "|" character (so basically they're side by side) and give the results of ONLY the exact change; note that 19... (3 Replies)
Discussion started by: gvolpini
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I need to add two numbers with prefix with some zero, And result should come with the prefix and numbers.
$a=00000054
$b=`expr $a + 4 `
$echo $b # 00000058 <-- ResultHow can i get the result with prefix with zero's.
Thanks
Posix (6 Replies)
Discussion started by: posix
6 Replies
6. Shell Programming and Scripting
I need to compare two directories with tab separated files. I'm using diff to do this. diff output doesn't identify which column values are different, it just tells which lines are different. Is there any way to format diff output. Thanks
f1.txt
210 998877 phone 9981128209 add 111 nw st.... (2 Replies)
Discussion started by: blackjack101
2 Replies
7. UNIX for Dummies Questions & Answers
OS : SuSE Linux 10 (zOS)
I create two files test1 and test2
/home/me # more test1
1 2 3 4 5
/home/me # more test2
1 2 3
I entered the following command on cronjob and its work
diff /home/me/test1 /home/me/test2 > /home/me/test3
its created test3.
But the output of test3 is as... (1 Reply)
Discussion started by: sdhn1900
1 Replies
8. Shell Programming and Scripting
Hi all,
I know this may have already been asked but hey ho...
i have two dates in the 'yyyy-mm-dd hh:mm:ss' format.
'2009-01-03 01:00:00'
'2009-04-05 00:00:00'
How can i, in shell script determine their differences?
Please note, the time may not be available, so please suggest both... (4 Replies)
Discussion started by: muay_tb
4 Replies
9. Shell Programming and Scripting
Hi experts,
I am reading two log files and passing dates as output to a txt file.
Code is given below:
echo "Start Time:" >> Report.txt
cat start.log | while read LINE1
do
echo $DATE1 >> Report.txt
done
echo "End Time:" >> Report.txt
cat end.log | while read LINE2
... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies