Summary: I think a script is required. This is my take. Let me know if you have any questions: #!/bin/ksh word=myword while read line do if echo "$line"|g...
Summary: Hi Guru's, I would like to grep a particular string in a file and the output should print the line containing the grep'd string and next line also. Ca...
Summary: I have a .txt file which contains several lines of text. I need to write a script program using grep or any other unix tool so as to detect part of th...
Summary: Greetings! Does anyone know of a utility or a script for renaming files on a UNIX web server? I've seen several of these types of renaming utilities ...
Summary: Hello, I have a little trouble with grep...what i have is a file with many lines and any of the line may contain a word "error" , i want to grep this...
Summary: Hello, I was wondering if its possible to use grep (or similar) command to return not only the lines containing the "target" string but also 'n' lines...
Summary: If it is a Korn shell script, use typeset -l or typeset -u (-l will set the variable value to lower case and -u will set the variable value to upperca...
Summary: I wanted to know if it's possible to create a script that runs 5 seperate SQL queries using a date function as input to the queries. Presently I have ...
Summary: is it possible with awk or grep (or some other unix tool) to stop the search of a text file after the number of results reaches a predifined number....
Summary: Since I found this very helpful forum and friendly people, I have a small request. I use AIX Unix and would like to know if there's a simple way how t...
Summary: I am currently trying to solve a few problems that i am having great difficulty in. I have tried many different methods, but every time i dont get any...
Summary: I need to do some housekeeping by moving log files after 1 month to another directory. Are there any unix commands or script to help me? I am totally ...
Summary: Does anyone know of a utility to translate HPGL files to PDF? Or what about HPGL to PS? Then PS to PDF will be possible with Ghostcript or Acrobat. Th...
Summary: Since the lines you want to keep are easily identifiable, then grep or sed can selectively print those lines. Here are 3 solutions, differing only in ...
Summary: It should be faster to use an ordinary regexp that includes the '^' beginning of line matcher instead of the fixed-string anywhere in the line method,...
Summary: Do i have any option of connecting to ftp only once and executing the for loop or sending the files one per one minute? my options will be 1.if poss...
Summary: Hello, I have a data file I'm searching. I know the line numbers that the data I want is in. I now want to extract only those lines in the file and ...
Summary: Folks, I am trying to create a script or scripts to test telnet connectivity. Basically I have telnet (see below) working, except when successfull I g...
Summary: Hi William, What I mean is that db is the database, this is like a database for bug tracking program, all defects are entered into here, and so on. ...
Summary: I have this files that print garbage charactors. Its very hard to define those charactors and hard to find it too. and these charactors are different ...
Summary: thanks nail. this kind of solved my problem too. Now, i have a question about this. I have this files that print garbage charactors. Its very hard to ...
Summary: Hi Ed, Your proposed command is not exactly my requirement as it displays the file usage at all levels. Actually I want to display the top 10 space us...
Summary: I have a question . Can somebody plz help when a certain job is executed, it ftpies a set of two files to a remote unix server under a directory say/...