07-18-2007
thanks!!
thanks Unix-god, the solution you gave works like a charm! though I couldn't figure out some of the intricate regexp embedded inside ;-))
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to query a table having 3 columns, the third column is a field of varchar(1024) with a SQL string in it. I am using cut command to split out the three fields into three variables. I do a db2 command to extract the data into a file.
My problem is with the third field having the SQL... (3 Replies)
Discussion started by: fastgoon
3 Replies
2. UNIX for Dummies Questions & Answers
Hi guys--
Here is the interesting problem..
I have a folder, which has a couple of xml files like ( could be anywhere under the sub folders)
ABCD_NA.xml
XAYSGD_SC.xml
CBV_CA.xml
etc
I need to peek in each of these xml's and see that the pattern before the _ and after the _ are there... (0 Replies)
Discussion started by: smallu
0 Replies
3. Shell Programming and Scripting
hello and thanks in advance.
I need to consolidate 2 records of data into 1 record.
here is a sample of the input:
------------------------------------------------------------------------------------------
totalcount fred thomas 99999.00 88888:00
total 77777.00... (7 Replies)
Discussion started by: scuderiaf1
7 Replies
4. Shell Programming and Scripting
i need to search the starting line
example we have
-sh
shl-js-gd
i need to search only starting -sh not the other
i have used cmd
cat filename | grep '-'
but it will check for complete - in the file
please help me to search only starting -
thank u
revenna (0 Replies)
Discussion started by: revenna
0 Replies
5. Shell Programming and Scripting
Hi all,
I'm a newbie. I'm thinking of making a shell script which will list a directory for *.csv files and merge all the files into a single file called data.csv.
However, i have no idea how to. What i do currently is to manually issue the following command to merge multiple CSV files into... (1 Reply)
Discussion started by: infinity2030
1 Replies
6. Shell Programming and Scripting
I have a file test.txt and i need to grep pattern "A.17" from that file.
I know cat test.txt | grep A.17 will return the pattern, but it is returing like
# VERSION=A.17
How can i take only A.17 from this
if A.17 is found,
... do something
if not found
... do something
Please... (11 Replies)
Discussion started by: Renjesh
11 Replies
7. UNIX for Dummies Questions & Answers
Hi I want a script which should basically do
1. If the size of the file is 0kb,
send email to some list od ppl
2. if the size of the file is other than 0kb
send email to someother list...
Pls help (2 Replies)
Discussion started by: win4luv
2 Replies
8. Shell Programming and Scripting
hi all,
i want the script for the following
my input is date mm-dd-yyyy
i.e 1-4-2012(it doesn't have zeros in the input ,in output it should append zeros and should print the output as defined below)
my output should be 2012-04-01(yyyy-dd-mm)
if my input is 11-14-2012
then my should be... (7 Replies)
Discussion started by: hemanthsaikumar
7 Replies
9. Shell Programming and Scripting
I need help writing a Unix shell script that does the following:
1) Searches all of the files in a given directory that have the .acl file extension
2) Redirects the output of the search to a column in a .xls or .cvs file
(Note: The column name in the spreadsheet file needs to be named... (2 Replies)
Discussion started by: ijmoore
2 Replies
10. Shell Programming and Scripting
I want to take out the Z1 value from the lscfg outpu and use the below command to get it
lscfg -vl hdisk0 | grep "Device Specific.(Z1)" | awk -F. '{print $NF}'
# lscfg -vpl hdisk0
.
.
Device Specific.(Z0)........0000063268181002
Device Specific.(Z1)........020064a
.
And it works,... (2 Replies)
Discussion started by: moorthikv
2 Replies