Summary: I currently have an awk that removes all new lines and works fine, but I'd like to do it in a sed file since everything else is happeing in the sed f...
Summary: find command is recursive....it will delete all files in your sub directories of /archive as well according to the condition that you have given to it...
Summary: Hi I am using sed in a shell script. I am having problems in using parameters in sed for search and replace. TEST=`grep "'/" source | head -1` sed s/...
Summary: It's a little complicated and I don't have time to implement it. The pseudo code is as follows. Notes: 1. attach each line with the sequence # 2. use ...
Summary: How can I remove a line in a file? e.g. File containing the following 307 319 352 If I wanted to remove line 319, what would be the syntax? Any alive ...
Summary: Hi Folks, In sed and/or awk, how would I formulate an if/else logic to skip a command if a specific text already exist in a file? I am getting multip...
Summary: Hi! I have two questions. It's already 1.15 AM :( can't solve it. May be somebody will help? 1) Write a sript caled smartrm which will accept an unlim...
Summary: Actually, looks pretty good. Here is what I found: a) Your code for optionally creating the junk directory needs to be at start of script since the i...
Summary: Hi, I'm trying to use a combination of find -exec and grep with little success. Basically, I need a script to search for files modified within the la...
Summary: Hi everyone, I am trying to remove some lines from all the files in a directory, for example I am looking at the fields 25-27 and if it is 19 I am tr...
Summary: Following script should do what you want: #!/bin/sh mv master.ics master.old cp master.heading master.new if [ -f master.ics ] ; then ___print "Could ...
Summary: I was wondering if you could help me with a script to remove ALL the lines in a file that contain the word "BOUNDARY". I have the script like this so...
Summary: Yes, that code eliminates empty (null) lines. For each null line encountered, it pulls the next line into the pattern space (main work buffer), then ...
Summary: I have a text file containing 100's of thousands of rows. For each line in the file, I want to remove the pipe | character if it exists between posit...
Summary: For repetitive executions, you need to choose either to go with cron or to make your script a sleeper script. You can schedule it in cron to run as fr...
Summary: Thank you Fishmonger. Yes I need to lemmatize a corpus and I need to remove all line endings. The enter key seems to disturb the lemmatizing process. ...
Summary: Hi I have a comma delimited data file. I would like to delete CR, LF chars (ie. 015, 012) that appears in the middle of each record. I have used tr -d...
Summary: Hello All I have a small problem and have no idea how to complete it. I have a script that is colleting all the info I need script below. *********...
Summary: Hi, I am trying to find out how to remove the last word in a file. For example, a line in a file will contain: one two three four And I want to remove...
Summary: The ${var#pat} and ${var%pat} constructs do not recognize begin-of-line and end-of-line anchors because their logic is already targeted to either the ...
Summary: The 'for fn...' loop lists all of the files so that they can be compared with the file master. What you want is that instead of master, the second fi...
Summary: HI all, I'm writing a KSH script which trying to get input from user. I'm only want pure character plus number and underscore. Just like requirement t...
Summary: Hi, I would like to remove all characters between [ and ] in each line of a text file but only if there is NOT an X between the [ and ]. If there IS ...