Hello All,
I am stuck at a point where in i am to check for any non-numeric charaters in a variable. Is there a way to do it. I want to avoid using multiple if checks.
Basically i expect a variable to $VAR to contain only numeric values and if it contains any non numeric value it should exit...
Hello Guru's,
I have following files
/SourceDir/File_Name:1:0224:2009
/SourceDir/File_Name:2:0224:2009
I want to move them to
/TargetDir/File_Name_1_0224_2009
/TargetDir/File_Name_2_0224_2009
Is there a way i can do this using nawk ?
Your feedback is greatly appreciable.
cheers,
LN
Hello Gurus,
I am new what at awk and easily getting lost. I am stuck now and would really appreciate your help. Here is what I am trying to achieve as output from the input file mentioned below :-
EXPECTED OUTPUT :-
Date Time sylogina1 sylogina2 others Total
Feb 21 2006 12:00AM 2...
Hello Gurus,
I am getting error in the ksh. I tried turning the debug mode on but it gives no info. The same line comes as an error.
the error is
tst_in.ksh[26]: 0403-057 Syntax error at line 100 : `<' is not matched.
Is there a way to get more insight into this.
TIA
Hello Guru's,
I have a question. But before i ask i need to give some background
I have a variable say VAR assigned with value say thistestvalue
now i have to find if "est" is a part of $VAR. If so then what is its starting position in the $VAR.
Is there a way to do this in shell script...
Hello Guru's,
I have a string variable. Length of it is variable. With every execution this may change. But once i get a string i need to read thru it one character at a time.
How do i do it ?
I did read a thread posted by "dbadmin", it didn;t work for me.
TIA,
Hello Guru's,
I have a question if i may ask. I am trying to find files older then certain number of days from current date. I thought you could do this with find cmd, but unfortunatey this is not working for me or i am not using the cmd correctly.
I was using following cmd to list files in a...
Hello Gurus,
I have a question rather i am stuck at this point.
I have two files. One containing a single record
Jul 8 2004 6:03:00:000PM ~~123456789 ~~13571
And other containing multiple records
~~10001A ~~N ~~123450.0 ~~0.0
~~10002B ~~N ~~234560.0 ~~0.0
~~10003A...
Hello Gurus,
I have one question if i may ask.
Using awk/nawk
can one write a report such that one position the output within output file. Here is what i am trying to do. I have following files :-
tbldef containing following lines
Curr_Dt datetime Not Null
Pcr_ID string(15) Not Null...
Hello Gurus,
One question if i may ask.
In a flat file the record is as follows.
ab c ~~ efg ~~ hij ~~ klm
i assigning it to array in ksh in the format specified below
ab c
efg
hij
klm
i am able to achieve this by using following
tbldata[0]=`nawk '{ FS =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.