Summary: Hi All, Thanks in Advance. My requirement is there are some data files to be updated(some times new files get created) regularly in server A, these fi...
Summary: Is there a way to update the contents of a file (this file contains a list of sqls) without piping it to a new file using a shell script ? I have 15 p...
Summary: Hello, I have a text file in following format. Separate blocks of data are there, they are separated by a blank line. There are NO blanks in between d...
Summary: Hi all, I am a very new user for korn scripting and in a process of learning. i have a .bat file that calls a .vbs file which calls a macro used to co...
Summary: I have a script that inputs a line into the first line of a text file using sed: sed '/1i\ '$LINE'' <$FILE FILE and LINE are inputted using read. ...
Summary: Hi, I am doing some records processing in a text file. I would like to know how can I read the lines repeatedly until the EOF character is reach? All ...
Summary: can any one tell me how to run a semaphore. i understand roughly how they work code wise, but i'm not sure how to make use of them. i have two client ...
Summary: How do i delete first line of a file. The file starts with page break ^L. The first line contains the page break ^L. The file may have multiple pagebr...
Summary: Latha, You should first sort both the files - if u have a key to sort..it will e best..or else just do a simple sort and then do a diff eg sort file1 ...
Summary: If ! is your field separator, then the 7th field is 16042296. How do you get a date out of that? The 5th field is a date "20090805235959" and 60th f...
Summary: Have you thought about using Perl? I noticed that your desired output has 2 additional changes made that your code doesn't show. 1) changed the line t...
Summary: Hi folks, Using sed and/or awk, how would I insert a text string (from a korn script) after a string that's at the end of a file. I'm having trouble ...
Summary: I am running a command that finds a number of files: find / -type f -name "core" -print 2> /dev/null I then want to count the number of lines or files...
Summary: Any way of getting the modified timestamp of a file in the format I want, say dd/mm/yyyy hh24:mi:ss format, irrespective of when the file is last modi...
Summary: Thank you, Steve !!! I found the pwdx command on SunOS together with other helpful commands. The problem I have can be resolved using the pmap rather ...
Summary: I have a customer with SCO Unix and Windows . He has is a program that can create a large textfile. What he will use this program for is to create ...
Summary: Hi I am trying to ftp a file to a remote server. i used the following script: HOST='host' USER='user' PASS='pass' FILE='text.txt' ftp -n $HOST << end...
Summary: Given a phrase like this: WORD1 WORD2: WORD3 WORD4 WORD5 I just want WORD3 WORD4 WORD5. I can tail the file it comes from to get the last line, but ...
Summary: Hi, I'm a newbie to scripting in Unix and I need help with the following. I want to write a script that would retrieve the creation date/time of a fil...
Summary: I am comparing two files fine using diff as follows and manipulating the results: diff FileA FileB | sort -u > result How do I do the same for a sets...
Summary: This is not much of a solution, but I thought I'd try to give you *something* to go on... The only way I can think of to do this would be to use a Jav...
Summary: You set a variable in ksh with var=value not set var=value To evaluate a command and retrieve its value, use var=$(command...) tail returns the last n...