Summary: in a sed file I'd like to append the line to another file if it matches and substitutes s/abc/cat/w filename However I don't want it to create a new ...
Summary: First of all, I would like to thank the folks posting here.. I have learned a lot. Now to my next issue - I am trying to create a script that will pro...
Summary: The echo or print command is typical used for that, and as kendel states, redirect the output of the command to your file. The first command below wi...
Summary: First, your vi command to save and quit vi is incorrect: It's not :wq! it is just :wq An alternate way of save and quit in vi is :x Another method to ...
Summary: hello all! just wondering, would it be possible to run a command in a shell, a script maybe, to capture all files sent to a specific printer to file t...
Summary: Shell commands can append to a file, but that would be AFTER that last newline character. You are wanting to modify the last line, so you need to out...
Summary: Hi Guys, i have a perl script running unix environment which will append some results into a file before it's being copied into another directory, the...
Summary: Thanks, Nails! Works great to append the line feed onto the source file. If I could ask a follow-up question: I'd like to eliminate as many interme...
Summary: Hi All, Im trying to write a script to archive files based on the date the files were created. For example, if a group of files were created on 23rd A...
Summary: Well I tried it again here at home and still couldn't get it to work. While doing more research, I found a windows based text editor that allowed em t...
Summary: Can you please post a sample of the data. Does the abcd.sed script really only contain --------------------- (ECONF2) run ECONF2 ---------------------...
Summary: i want to open a file automatically (not by using vi) (ex. from another file) insert few characters at say 12th position to 15th position and save it ...
Summary: Can anyone convert this bash script to a csh script? Essentially what this script does is it takes an a directory as an arguement and appends that to...
Summary: The following code will pass a file (with no changes) by keeping the last two lines in its buffer. The N appends the second line, and the P and D wil...
Summary: Hi luke Chi Thanks its works great Just 1 question, if i have to replace a field in the .pf files for example change "128" to "256" ? what do I i use...
Summary: Hi. I would like to be able to update only one line in a file that matches a key using sed, but I can't seem to get this (the key is right at the begi...
Summary: The diff | grep | sed method still seems to be oversensitive, and when anything moves in this enormous file, it calls all the lines different. If I...
Summary: Is there a way (sed, awk or other) to convert a file into several files using a pagebreak or other string to be used as the separator. Example - to c...
Summary: Hi! As the subject says, I'd like to add a " /" to the end of a line containing a specific keyword. For instance: in.txt: a=1,b=2,c=3 d=4,keyword=5,f=...
Summary: Here's what I would do: 1) Strip out the date from the the file name. Given that the file always starts with the structure you gave, this sed comman...
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: Well, on the HP-UX machine, have it create a new file whose contents are only the CRC (or MD5 SUM) or the file it's named after. Transfer both files,...
Summary: Hi, I am trying to send file via elm utility as a background process. How do I set cc (carbon copy to). I have managed to send to direct person using:...