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: Hello, how do i get the last field Ex: files are with this formats abc_xyz_20041232 abc_20041001 abbc_xyz_rrr_20041013 i tried with cut command but i ...
Summary: I need to be able to print the last few pages (or lines) of a very large file. Can anyone help me out? I know how to print the whole thing,and I kno...
Summary: hi all I need some help and i hope someone can help me.. In /etc/group file I need to append usernames at the end of a group record so that these use...
Summary: The following code will pass the file only once, reading the first 4 words of each line into the variables: while read a b c d excess do echo "a=$a b=...
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: hi guru,s fo unix! help me out to find the complete/full path of a file present in any directory.I am actually trying to create a script which moves a...
Summary: Probably the most simple way is to use the unix cut command. This gets the last 2 characters of argument 1: #!/bin/ksh var=$1 len=${#var} # get the ...
Summary: Hi, Is there a way to find the last modified time of a file using a unix command.I will need to execute a remote execution so do not think I will be a...
Summary: I see that the new XFree86 3.3.6 has a driver for the SiS 530 but I don't know how to get it and install it, or if it suits the AGP version. I'm a rea...
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: Hello, I am running Tivoli Storage Manager command "query event" and trying to basically un-wrap hostnames that are too long. For a hostname that is l...
Summary: Hello, Recently began writing some UNIX scripts with a lot of success. One problem I have encountered that really stumps me. In an alias file, af...
Summary: Hi Can anyone tell me how do i get the number of instances (count) of a word in a file, given that the word can occur multiple times in a line. ...
Summary: Hello guys, I hope that someone of you can answer to this question: How can I get the full path of a running program ? As you know, the ps command doe...
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...
Summary: Hello all I have a little problem. I want to search for more then one word in a line example below [18:16:15.537744] [1] EVENT: FORCE_STARTJOB J...
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: The code above came from Nov 2004 I believe, and it calculates the ISO calendar week of the year, which is a bit tricky. ISO weeks begin on Mondays, a...