Computing.Net > Forums > Unix > Search Results

Quick Links

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

Sponsored Results for: vi : insert a string every 2nd line

Ads by Google


Show Within: One Month | One Year | Forever
Search Results for: vi : insert a string every 2nd line

Product Search Results


Results 1 - 25 of 7408

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

vi : insert a string every 2nd line
    Summary: Hi, I have a file in vi which looks something like this: get_date update_date delete_date new_time get_amount update_amount I want to insert a new lin...

How to insert string in a list?
    Summary: Hi Folks, Is there a way to insert a string of text in a database list by first locating a specific word and then inserting (or appending) a string ev...

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 ...

insert a delimeter in a text
    Summary: Is there a pattern to where you place the delimiters? For example, insert a delimiter at position 4 and then insert a delimiter every 2 characters. T...

Find a string; print next line
    Summary: I have an output file from a CAD program. In it, I have CG and MOI data. When I see a string that tells me, "CG about CSY origin:", I want to captur...

adding text to the end of every 2nd
    Summary: hey, how would i go about adding text to the end of every 2nd line, then appending the second line to the first? any help would be appreciated ...

copy files with pattern from a file
    Summary: Hi, I'm a relatively new Unix users. I would like to copy files from "May 13" only to a different directory but don't know how. I appreciate if you co...

Insert string in a txt file..?
    Summary: Ok thanks Aigles but really I need insert a string. Assume pp.txt structure: [send] [end send] I want insert a line thatīs not exist between [send]<...

replace a string to new Line
    Summary: The following expression is in one line "AN- EIP04398375704| TI- Convergence and dissemination: A brief history and description of the StreamNet Proje...

Insert a line to many files
    Summary: Hi I would like to insert a line to many files in a directory : for example: abc has to be inserted to files harry.pf barry.pf tom.pf The common denom...

search & insert text into a string
    Summary: hello all, i have a string "start(hello) welcome to unix end(hello)start(hi) welcome 2 unix end(hi)". note that this is a string & not a file. i want ...

finding a string from text
    Summary: there is a txt doc that i have. i have to find a string which is in middle of the line and if it finds that string then my script sshould output the w...

nawk - changing every x lines
    Summary: Hi all, I've got a large flat file, 'file1' and want to change occurances of a phrase 'TEST1' in every second line. What I've got so far is using naw...

sed - reverse every 2 lines
    Summary: I'm trying to write a sed script that will switch every 2 lines. For example: Input: Hello there 1 Hello Gerry2 Bye Tim Bye Tim Beans Output would be:...

inserting a file within a file
    Summary: vi with a unix here document places the contents of file my2 after line 3 of datafile: vi +3 datafile << MSG :r my2 :wq MSG ...

Shell script to replace a string
    Summary: hello all, I have a file which has a string as follows:- bin i want 2 write a shell script which will replace this by /home/sandeep/bin. This shoul...

sh Find the length of a string
    Summary: How do I set a variable to the character length of a string? I have tried several such as n=len($a) n=length($a) set n [string length $a] They do not...

Replace a string in Script
    Summary: I need to create a script, taking a number of parameters (a target string, a string to replace the target string, and a number of files), that perfor...

Last character in a string
    Summary: Hi, I have to find out whether the last character of a string is a "/" or not. I have to accept a path from the stdin and find out whether it has a "/...

detect a char in a string (ksh)
    Summary: Hello, I try to detect the presence of a char in a string. This is korn shell. mystring="1234-" mychar="-" if [ mystring includes mychar ] ; then e...

Split a string
    Summary: Hello, I'd like to a split a string into two parts and assign them to two different variables. The string will be passed as an argument to a Korn Shel...

awk: prnt field val in 2nd line
    Summary: I need to find the filed locations that match a regexp, in 1st line, then use that field value to print the data in the same locations from the rest...

moving through a string
    Summary: IMO, the best way to cycle thru a string is to use the unix cut command: #!/bin/sh count=0 ls -l file | while read str do until [ $count -eq 10 ] ...

Parse a string
    Summary: Hello, I am trying to parse a string and assign the result to a variable. For example, I have a variable yymm="0809", I am passing this variable into ...

Search a string and generate a error message.
    Summary: Hi Frens, I have to search for a string and need to display a error message if that sting is not found in the file.... I can use the command: > grep "...

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

Sponsored Results for: vi : insert a string every 2nd line

Ads by Google