10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Discussion started by: jiam912
14 Replies
2. Shell Programming and Scripting
Hi Guys,
i want copy the all files another direcotry after filtering the command.
and tried as like below...it's not working.
ls -ltr|awk '{print $9}'|grep "images\|\.htm"|cp *.* /home/oracle
Thanks (13 Replies)
Discussion started by: bmk
13 Replies
3. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
4. Shell Programming and Scripting
Hi,
I am using the following command(sed) to get the key/value pair from the string
String="{ "test":"test message", "testmessage":"subscription is active, charge successfully} " }"
status=$( echo $String | sed -e 's/^.*\("testmessage":*\).*$/\1/')
echo $status
i am getting this... (2 Replies)
Discussion started by: nanthagopal
2 Replies
5. Shell Programming and Scripting
Hi, all, I have files like:
nameserver 216.66.22.2 ; tserv1.ash1.ipv6.he.net. tserv13.ash1.ipv6.he.net.
nameserver 216.66.38.58 ; tserv1.tor1.ipv6.he.net. tserv21.tor1.ipv6.he.net.
nameserver 216.218.221.6 ;... (3 Replies)
Discussion started by: esolvepolito
3 Replies
6. Programming
This could be a simple problem for the perl experts
I am trying mail merge in perl
The header file is head1 which is as under
... (6 Replies)
Discussion started by: sunnyboy
6 Replies
7. Shell Programming and Scripting
Hi,
I need to filter and store the files ends with log extension in the array and need to write the file names in the array to a file.
I need to use array to derive this solution. Please help me out.
Thanks (2 Replies)
Discussion started by: Sekar1
2 Replies
8. Shell Programming and Scripting
Hello all;
I have a large file (csv file) with addresses. I am trying to filter out specific entries based on zip code from a particular column of data. However my awk statement can not account for zipcode that begins with a certain pattern. It finds the pattern anywhere within the zipcode. ... (3 Replies)
Discussion started by: nelsonsierra
3 Replies
9. Shell Programming and Scripting
Anyone can help for filter the uniq record for below example? Thank you very much
Input file
20090503011111|test|abc
20090503011112|tet1|abc|def
20090503011112|test1|bcd|def
20090503011131|abc|abc
20090503011131|bbc|bcd
20090503011152|bcd|abc
20090503011151|abc|abc... (8 Replies)
Discussion started by: bleach8578
8 Replies
10. Shell Programming and Scripting
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Discussion started by: shashi1982
2 Replies