Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: buccaneers
  • Content: Threads
  • Order by date
  1. buccaneers

    Is there a way to search non-numeric charaters with in a variable..

    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...
  2. buccaneers

    replacing ":" with "_" in a string using nawk...

    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
  3. buccaneers

    Help...

    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...
  4. buccaneers

    getting error in ksh..

    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
  5. buccaneers

    how find if a stirng is a part of a variable....

    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...
  6. buccaneers

    looping thru' a string within a variable...

    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,
  7. buccaneers

    How find files that are more then certain days ?

    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...
  8. buccaneers

    How do i do this with awk....

    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...
  9. buccaneers

    awk..

    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...
  10. buccaneers

    nawk

    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 =...

Part and Inventory Search

Back
Top