10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I cannot seem to get what should be a simple awk one-liner to work correctly and cannot figure out why. I would like to use patterns from a specific field in one file as regex to search for matching strings in the entire line ($0) of another file.
I would like to output the lines of File2 which... (1 Reply)
Discussion started by: jvoot
1 Replies
2. Shell Programming and Scripting
could you please help me.
I have below autosys jobs
01_enable_input_hol_dtpz1b
01_abc_copy_ld_sat_xxxz1
01_abc_mavcd_yyyyyxxxz1
01_abcdef_oa_xxxxxz1
01_fdgte_symbol_ddddz1
01_fsdfsd_clean_mmmhhhfz1
01_fsdfd_create_mut_marchtz1
I want to remove name after last "_" underscore
so that... (6 Replies)
Discussion started by: sdosanjh
6 Replies
3. Shell Programming and Scripting
My input is:
a.txt computer
b.txt
c.txt
e.txt
I want my output to be:
a.txt computer
b.txt computer
c.txt computer
e.txt computer
There are about 100000 text files having the same format as my input data. What I am doing now is too slow and also requires plenty of scripts.
1. wc -l all... (3 Replies)
Discussion started by: shoaibjameel123
3 Replies
4. Shell Programming and Scripting
hey guys,
for the following output:
starting
open
open
close
close
starting
close
starting
open
close
close
starting
open
open
close
open (2 Replies)
Discussion started by: boaz733
2 Replies
5. Shell Programming and Scripting
I am trying to create a script that will report (email and ftp results) on any file, system wide, that has the word password= in it. (and any variation of password=). Basicaly looking for any plain text passwds. I figured the easiest way would be like this......
for i in `cat find-pw.dat`
do... (6 Replies)
Discussion started by: theninja
6 Replies
6. Shell Programming and Scripting
how to cut the first word in multiple file at a time
i.e)1st row and 1st colum word in multiple files (6 Replies)
Discussion started by: natraj005
6 Replies
7. Shell Programming and Scripting
Hi All,
I would like help with a script which can get rid of the first work of all lines in text file.
File 1
The name is Scott.
Output : name is Scott
---------- Post updated at 02:38 PM ---------- Previous update was at 02:37 PM ----------
Hi ALL
There is typo error in... (3 Replies)
Discussion started by: bubbly
3 Replies
8. Shell Programming and Scripting
hi to all
i wrote a script to cut a word from the file....that works only if the word is fixed field.
example..
sed -n '1p'|awk '{ print $2 }'|cut -d '(' -f2|sed 's/(//'|sed 's/)//'|sed 's/"//g' filename
i know that word is starting with "app" then "(" ----> ex: app("xxxx").
it... (2 Replies)
Discussion started by: honeym210
2 Replies
9. Shell Programming and Scripting
I have contents like
423562143124/53125351276
sdgas/347236
sjhdk;ls'ald/y62783612763
I need a command that would make the string before / and after / as separate output as (A should contain 423562143124 )and B should
contain 53125351276).
I tried but in vain.
Please help. (19 Replies)
Discussion started by: rollthecoin
19 Replies
10. Shell Programming and Scripting
file1.txt :
india pakistan bangladesh
japan canada africa
USA srilanka Nepal
file2.txt
Delhi
Tokyo
washington
I have to cut the first column of file1.txt and apend it with file2.txt as another column like this
Delhi india
Tokyo japan
washington USA
... (4 Replies)
Discussion started by: sakthifire
4 Replies