Computing.Net > Forums > Unix > Search Results

Quick Links

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

Sponsored Results for: cat concatenate deleting first line

Ads by Google


Show Within: One Month | One Year | Forever
Search Results for: cat concatenate deleting first line

Product Search Results


Results 26 - 50 of 3168

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

replace last comma of first line
    Summary: hi , i have a comma seperated file with 1 line which is terminating with a comma in last now i wanted to remove the last comma. can any one tell me ho...

Removing Duplicate Records
    Summary: The 'cat -n' puts the line number (right justified) and a tab at the beginning of each line. Next, the first sed statement chops each line up into 3 f...

removing CR in middle of eachrecord
    Summary: Matin, your logic of: "delete any LF found if the location of LF is less than the length of the line" will not work because in unix, an LF will not be...

days left in current month
    Summary: #!/bin/ksh M=$(date '+%m') Y=$(date '+%Y') D=$(date '+%d') # execute cal command, reverse the output, delete blank lines, grab first line # and print ...

compare lines within file
    Summary: It is very easy to waste the first line.  awk could do an initial getline to waste it, or tail +1 would do it.  But the last line is much more of a pa...

Pause during gawk getline loop
    Summary: awk does the getlines (into $0 buffer) for you automatically. A basic awk solution will not use an explicit getline, but getline comes in very handy ...

joining lines with sed
    Summary: Here is an awk solution.  That match expression insists on 14 non-bar characters followed by a bar character followed by anything.  It would recogni...

Removing blank lines
    Summary: Q1 & Q2: Remove Blank Line vi filename (use 'vi' edit the file) :g/^$/d (type this ex command for delete blank line) :g/#/d (type this ex ...

How to join two text lines on one l
    Summary: Try this: #change the num to the lines you want to join num=3 count=$num cat textfile | while read lines do if [ "$count" != "1" ]; then echo $lines |...

Negate a Regular Expression?
    Summary: For grep, the -v option will negate (or reverse) the result set. grep red grep -v red grep -e red -e blue -e pink grep -ve red -e blue -e pink sed can...

Remove Ist Blank Page in a File
    Summary: Found out the solution Guys: sed '1,1d' outfile > newfile My file always started with a page break, so I delete the first line of the file using sed a...

Append to last line of file
    Summary: Hi, Can someone tell me how to append some text to the last line. Basically i have a last line of a file as follows user1:password i would like to ap...

Blank lines in File
    Summary: I have very big file, which contains almost alternate blank lines. Can anybody suggest me how to delete those lines? I don't want to go on individual ...

read text file, till str, write res
    Summary: - I need to read and ignore a file till i find a certain string and then write out the rest of the file in to another file using sh ... can some one ...

Script: Read file to set variables
    Summary: I have a script that I wat to set some variables from an external file. The file, "x", has entries such as : 1 2 3 I want to set the variable in my s...

printing a line thru a loop
    Summary: hi, i am not doing integer aritmatic. i need to pick up a line from the file path.txt using sed command. with sed -n 1p path.txt will give me the fir...

KSH script
    Summary: for I in `cat /etc/mnttab |grep ufs | cut-f2` The main line of your for-loop is executing a nested command (in this case it is a series of piped comma...

remove top line in file
    Summary: sed -n '1p' your_file > new_file This will not alter your_file. It takes the first line of it and puts it in new_file. -jim ...

Deleting nth row
    Summary: Hi: sed might be a safer tool to use. This deletes 53841st line sed '53841d' file > newfile ...

sed delete minus one
    Summary: Anybody know how to get sed to delete lines up to (but not including) a certain line? To delete all up to and including the line, I use 1,/whateve...

Parsing patterns
    Summary: In regards to the Jim script, for some reason the return code comes back as 0 after every two lines. So out put looks like this: param2 (stop/ param2 ...

log file script
    Summary: Hi, I've been working on a log script and I keep running into problems with the code. Can anyone help me? I'd like the script to read each line in a ...

Please help to new !!!!
    Summary: Here are a couple of different approaches, and each of these support any number of words on a line. To preserve my indentation for better readability,...

help with shell script
    Summary: Can anyone help me with this assignment. Write a shell script file to read 5 student names (First and Last name) and their grades using a while loop....

Alternative for sed -i
    Summary: Thanks nails & james. But what i am looking for is - I have, say 3 functions which runs in background All functions are editing single text file to...

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

Sponsored Results for: cat concatenate deleting first line

Ads by Google