10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi, I need to print lines which are matching with start pattern "SELECT" and END PATTERN ";" and only select the last "select" statement including the ";" .
I have attached sample input file and the desired input should be as:
AXCVB,... (5 Replies)
Discussion started by: nani2019
2. Shell Programming and Scripting
I have been searching and trying to come up with an awk that will perform the following on a
converted text file (original is a pdf).
1. Since the first two lines are (begin with) text they are removed
2. if $1 is a number then all text is merged (combined) into one line until the next... (3 Replies)
Discussion started by: cmccabe
3. UNIX for Dummies Questions & Answers
I need to replace the (*) in the fist of a list with numbers using sed for example >
this file contain a list
this file contain a list
4. questions (7 Replies)
Discussion started by: aalbazie
4. Shell Programming and Scripting
Oracle Linux 6.4/Bash
I have a file like below. I want to remove all lines which start with # character. Can I do this vi editor ? If not , which other utility can I use for this ?
# This is a test script
CUSER=`id |cut -d"(" -f2 | cut -d ")" -f1`
# Some text
CDATE=`date +%y%m%d` ## get... (3 Replies)
Discussion started by: kraljic
5. Shell Programming and Scripting
Hi, I have multiple large files which consist of the below format:
I am trying to write an awk or sed script to remove all occurrences of the 00 record except the first and remove all of the 80 records except the last one.
Any help would be greatly appreciated. (10 Replies)
Discussion started by: nwalsh88
6. Shell Programming and Scripting
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Discussion started by: Dabheeruz
7. Shell Programming and Scripting
I have a directory with the following file names
01 - abc hyn
04 - jhu.dir
The last two file names abc1 starts with one space and def starts with double space. I want these files in my directory to be renamed as
GHI.dir... (6 Replies)
Discussion started by: jacobs.smith
8. Shell Programming and Scripting
Is it possible to remove empty lines between >humid-sets (bold) and also humidset that start with -- (for ex: > humid3 | () : | (+) )
Thanx in advance
Note: The humid sets will be in thousands and lines will be more than 100 thousand.
> humid1 | () : | (+)... (7 Replies)
Discussion started by: quincyjones
9. Shell Programming and Scripting
whats the simplest method to remove the colons from a mac address in PERL?
thanks & regards (3 Replies)
Discussion started by: hazno
10. UNIX for Dummies Questions & Answers
i "accidentedly" added some logical ip address to my solaris 8 machine.
now i want to remove them. i already man ifconfig but some how i just keep getting the wrong syntax.
this is the command i used to add
ifconfig hme0 addif 192.168.100.10 netmask 255.255.2550.0 up
so, now... (2 Replies)
Discussion started by: champion