10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I was able to figure out how to format a text.
Raw Data:
$ cat test
Thu Aug 23 15:43:28 UTC 2018,
hostname01,
232.02,
3,
0.00
Thu Aug 23 15:43:35 UTC 2018,
hostname02,
231.09,
4,
0.31
Thu Aug 23 15:43:37 UTC 2018,
hostname03,
241.67,
4,
0.43 (5 Replies)
Discussion started by: kenshinhimura
5 Replies
2. Shell Programming and Scripting
I have a csv file formatted like this:
2014-08-21 18:06:26,A,B,12345,123,C,1232,26/08/14 18:07and I'm trying to change it to MM/DD/YYYY HH:MM for both occurances.
I have got this:
awk -F, 'NR <=1 {print;next}{"date +%d/%m/%Y\" \"%H:%m -d\""$1 "\""| getline dte;$1=dte}1' OFS="," test.csvThis... (6 Replies)
Discussion started by: say170
6 Replies
3. Shell Programming and Scripting
I am looking to extract something like this from the below sample log file.
10.28.76.15 SSLC=Z42 71.19.175.130
10.28.76.15 SSLC=Z42 71.19.175.130
10.28.76.15 SSLC=Z42 71.19.175.130
for that I tried something like below and I have no clue how to extract the IP address marked red in the log... (6 Replies)
Discussion started by: Tuxidow
6 Replies
4. Shell Programming and Scripting
My content of source file is as below
scr1 a1
scr2 a2 b2
scr3 a3 b3 c3
I need a awk/sed command (to be used in C shell)to format it to something like below
scr1 $a1 >file1
scr2 $a2 $b2 >file2
scr3 $a3 $b3 $c3 >file3 (12 Replies)
Discussion started by: animesharma
12 Replies
5. Shell Programming and Scripting
I have this huge log file on my linux box that gets generated every day. I'm able to extract the information I need; however I really would like it to be broken down every 10mins.
Log File Snippet
01:23:45 MARYHADA Maryhadalittle.lamb(): fleece as white as snow 1394 for and everywhere that... (8 Replies)
Discussion started by: ravzter
8 Replies
6. Shell Programming and Scripting
Hello,
I need help to format a log file...again ; ))
Here is what I have :
FILE='/OPERATIONNEL/SATURNE/MASTER/SATURNE_MASTER_PRE_R20110119.TAR.GZ ... (5 Replies)
Discussion started by: Aswex
5 Replies
7. Shell Programming and Scripting
INPUT FILE:
9780743565219 "GODS OF NEWPORT" "JAKES, JOHN" 2006
OUTPUT FILE I NEED to CREATE FROM INPUT FILE:
cd /data/audiobooks/9780743565219
~/Desktop/mp3-to-m4b 9780743565219-GODS OF NEWPORT "GODS OF NEWPORT" "JAKES, JOHN" 2006 n ---------- Post updated at 04:19 PM ----------... (6 Replies)
Discussion started by: glev2005
6 Replies
8. Shell Programming and Scripting
hi all,
i have a text file which looks like the below
01
02
abc Top 40
music
Kidz Only!
MC 851
MC 852
MC 853
7NOW
Arch_Diac
xyz2
abc
h211
Commacc1
Commacc2
Commacc3 (4 Replies)
Discussion started by: posner
4 Replies
9. Shell Programming and Scripting
Hello everyone,
I have a log file :
\data\file\script\command_0001
\data\file\script\command_0002
\data\file\script\command_0003
I need to make all lines on this way
\data\file\script\command_0001 \data\file\script\command_0002 \data\file\script\command_0003 I know this could be done... (11 Replies)
Discussion started by: Aswex
11 Replies
10. Shell Programming and Scripting
Hi Friends,
I have a log file as below
siteid = HYD
spc = 100
rset = RS_D_M
siteid = DEL
spc = 200
rset = RS_K_L
siteid = DEL2
spc = 210
rset = RS_D_M
Now I need a output like column wise as below.
siteid SPC rset
HYD 100 RS_D_M (2 Replies)
Discussion started by: suresh3566
2 Replies