10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have this in log file /var/log/maillog
XXX YYY ZZZ :15214 I=:25 AAA BBB CCC
I need awk/sed operation on this, so that it retrieves only the first IP.
cat /var/log/maillog | sed_operation
55.66.77.88 (2 Replies)
Discussion started by: anil510
2 Replies
2. Shell Programming and Scripting
hello forum members,
I am siva ,As i am new to perl scripting i looking help from forum members.
i need a sample program are command for pattern matching.
I have file name infile1 which some data, I need to search the particular number are string in the file which repeats n number of... (0 Replies)
Discussion started by: workforsiva
0 Replies
3. Shell Programming and Scripting
Hello Experts,
I have come back to this forum after a while now, since require a better way to get my result.. My query is as below..
I have 3 files -- 1 Input file, 2 Data files .. Based on the input file, data has to be retreived matching from two files which has one common key..
For EX:... (4 Replies)
Discussion started by: shaliniyadav
4 Replies
4. Shell Programming and Scripting
Hi,
i am writing a shell script that will execute a select query. the select query returns one specific value.
Idql is used for quering in documentum...
X = $ (idql <docbase> -U<username> -<pwd> -Rdqlqueryfile.dql << !
set heading off
set footer off
!)
query in dqlqueryfile is... (0 Replies)
Discussion started by: kichu
0 Replies
5. Shell Programming and Scripting
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Discussion started by: sukrish
8 Replies
6. Shell Programming and Scripting
Hi,
I have filename in the following format:
YUENLONG_20070818.DMP
HK_20070818_V0.DMP
WANCHAI_20070820.DMP
KWUNTONG_20070820_V0.DMP
How to retrieve only the digital part with sed or awk and return the following format:
20070818
20070818
20070820
20070820
Thanks!
Victor (3 Replies)
Discussion started by: victorcheung
3 Replies
7. Shell Programming and Scripting
hi, I have write a code to retrive data from each line of a file:
sed -e '/^#/d' file.csv | awk '{ printf "TEST,%s:AUX,%s;\n", $0, "'A'"}' >
pippo.txt
where the input file.csv was like this:
1234
2345
2334
3344
and the output of my code is a file with:
TEST,1234:AUX,A;... (7 Replies)
Discussion started by: fafo77
7 Replies
8. Shell Programming and Scripting
I have a file which contains several lines. Sample content of the file is as below.
OK testmessage email<test@123>
NOK receivemessage email<123@test>
NOK receivemessage email(123@test123)
NOK receivemessage email<abc@test>
i would like to know by scripting will... (10 Replies)
Discussion started by: ramasar
10 Replies
9. UNIX for Advanced & Expert Users
How will retrieve for a particular months file in UNIX say for example from January to February 2008. (1 Reply)
Discussion started by: rajesh08
1 Replies
10. Shell Programming and Scripting
when I do a df -k for a particular mount i get the result like this
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/ 4128448 3527496 391240 91% /
I need to extract the value 91 from this and use it in my script in an if condition. How will i do it Please advice. (8 Replies)
Discussion started by: codeman007
8 Replies