Computing.Net > Forums > Unix > Search Results

Quick Links

Computing.Net Solution Center
Desktop Access to Search
Ask a New Question

Sponsored Results for: Get the last few words of a line?

Ads by Google


Show Within: One Month | One Year | Forever
Search Results for: Get the last few words of a line?

Product Search Results


Results 1 - 25 of 8213

[higher confidence] - higher confidence, [lower confidence] - lower confidence

Get the last few words of a line?
    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 ...

delete repeated words in a line
    Summary: how can i delete repeated words in a line ex. i have a file in the order a,b,a,b,c a,b,a,b output should be a,b,c a,b thnx in advance ...

how to get the last field
    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 ...

Printing last few pages (or lines) of a
    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...

to append the end of a line
    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...

Start & End time of a log file
    Summary: Hi I would like to know how can I cat the start & end time of a log file, this is what the file looks like: 22:48 Started 22:55 Ended DAY...

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

Comparing time/date of a file...
    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...

Help with sorting directory
    Summary: Here's a kludge: ls -1|nawk ' { e=substr($0,length($0)-1); gsub(/[A-Za-z]/,"",e); printf ("%s %s\n", e, $0) } '| sort -n| cut -d " " -f 2 # with awk ...

how to find complete path of a file
    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...

Parse a string
    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 ...

file modified time in seconds
    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...

SiS 530 and Xwindows
    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...

how to get the modified time of a file
    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...

Substitute - with 1st word line2
    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...

Last line of a file
    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...

number of instances of a word
    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. ...

creating a report
    Summary: account Last login ===MB=== Charlie Brown Nov 5 16:15 182.22 Exc 5MB James Boothe Oct 23 14:52 27.83 Exc 5MB (ora816) ...

how can I get the full path of a running program ?
    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...

To read the value of a variable
    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...

Get the first line from a file
    Summary: Hi All, I want to get the first line from a file and write it into another file. Please help. Thanks in advance. Regards, Raj Thanks & Reg...

Finding Word count of first line
    Summary: Hi, I want to count the number of words in the first line of a textfile and check whether it is equal to 21. So I am doing like ...

Searching for more then one word
    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...

Inserting a string at the end of a
    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 ...

calcuate the week number of a given
    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...

Jump To: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | >>

Sponsored Results for: Get the last few words of a line?

Ads by Google