10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My code below will print only the email address from all lines. I want to convert it with sed or awk.. also what if i just want to find only filenames.
cat LIS_EMAIL | perl -wne'while(/+@+\w+/g){print "$&\n"}'
Hoping to extract the filename such us .exe, .bin. From file that has scrambled... (8 Replies)
Discussion started by: invinzin21
8 Replies
2. Shell Programming and Scripting
Hi All,
i have an output of command vmstat as below :
$ vmstat
System configuration: lcpu=4 mem=5376MB ent=1.00
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi... (10 Replies)
Discussion started by: omkar.jadhav
10 Replies
3. Shell Programming and Scripting
Hi All,
I need help from any of you.Would be so thankful for your help.
I/P
DDDD,1045,161,1557,429,1694,800,1911,1113,2460,1457,2917>
1609,3113,1869,3317,2732,3701,3727,4132,5857,5107>
9004,6496
DDDD,1125,157,1558,429,1694,800,1911,1117,2432,1444,2906>... (2 Replies)
Discussion started by: Indra2011
2 Replies
4. Shell Programming and Scripting
Hi,
I have a file containing numerous string values, for example:
AMFU8849636
CCLU7120334
GESU5784065
TEMU3070096I have a second file with multiple records, such as the one below that I would like to manipulate based on the strings from the first file:
CATOS2EDI DSTOW ABC ... (7 Replies)
Discussion started by: doza22
7 Replies
5. Shell Programming and Scripting
Hi,
I have a file with more than 50,000 lines of records and each record is 50 bytes in length.
I need to search every record in this file between positions 11-19 (9 bytes) and 32-40 (9 bytes) and in case any of the above 2 fields is alpha-numeric, i need to replace the whole 9 bytes of that... (7 Replies)
Discussion started by: kikionline
7 Replies
6. Shell Programming and Scripting
Input:
:: gstreamer
:: xine-lib
:: xine-lib-extras
Output should be:
gstreamer xine-lib xine-lib-extras
How can it be done with sed or perl? (12 Replies)
Discussion started by: cola
12 Replies
7. Shell Programming and Scripting
336 brtr
256 hello
Output:
brtr
hello
How can i do this with sed,awk or perl? (5 Replies)
Discussion started by: cola
5 Replies
8. Shell Programming and Scripting
Input:
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
lp:x:7:
mail:x:8:
Output:
root
daemon
bin
sys
adm
tty (8 Replies)
Discussion started by: cola
8 Replies
9. Shell Programming and Scripting
Input:
3456 565
656 878
235 8
4 8787
3 7
35 878
Expected output:
3456 565
656 878
235 8
4 8787
3 7
35 878
How can i do this with awk,sed and perl? (10 Replies)
Discussion started by: cola
10 Replies
10. Shell Programming and Scripting
Hi All,
I have a big file of 100,000 lines with the following format:
1,736870,736870,1,2,5,547,1253889535,1253889775,240,30,152.163.141.8,US,0,00,-g 1253889445
1,881246,881246,1,2,6,402,1253889535,1253889775,240,30,152.163.141.8,US,0,00,-g 1253889445... (4 Replies)
Discussion started by: toms
4 Replies