10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
blah blah blah
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
2. UNIX for Dummies Questions & Answers
I am new to shell scripting and have a question. I would like to redirect the output of multple commands to single file, From what I read from the bash manpage and from some searching it seems it cannot be done within the shell except setting up a loop. Is it?
I am running all clearcase... (1 Reply)
Discussion started by: saku
3. UNIX for Dummies Questions & Answers
I have a cronjob that executes a small script (few lines) that I am certain can be achieved in a single line.
The functional objective is actually really simple;
The '1' in 'var1' is actually derived from date (day of month) but the snag is when working with 1-9 I... (3 Replies)
Discussion started by: Random79
4. Shell Programming and Scripting
I have a requirement with,
Single column alone got splitted into multiple lines.
I require the output as
mean to say those new lines to be... (1 Reply)
Discussion started by: Bhuvaneswari
5. Shell Programming and Scripting
Can somebody help me in solving this..
Input data is like
Output should be like
A B C D
A1 B1 C1 D1
A2 B2 C2 D2 (7 Replies)
Discussion started by: Mahantesh Patil
6. Shell Programming and Scripting
Would appear to me to be a farily simple question but having search all the threads I can't find the answer .. I just want sed to output the single line in a file that contains two string anywhere on the line..
e.g. currently using this command
sed -n -e'/str1/p' -e '/str2/p' < file
and... (3 Replies)
Discussion started by: flopster
7. Shell Programming and Scripting
Can someone tell me how I can do this?
Say file1.txt contains:
today is monday
the 22 of
and file2.txt contains:
How do i replace the word NOVEMBER with (5 Replies)
Discussion started by: tuathan
8. Shell Programming and Scripting
I would like to write a script with include more than 6 unix commands.
my script like below:
echo " script started"
bdf | grep "rama"
tail -10 log.txt
now, i want to run above unix commands one by one.
first the ls -ld command will be... (3 Replies)
Discussion started by: koti_rama
I've to do a simple job many times whenever it has been asked, just i've to log in to all of fourtien HP servers and i've to execute
ps -fu user > temp
cat temp|sendmail "email@example.com"
commands to send the statics of all of 14 servers over the mail to particular user id..
Though logging... (4 Replies)
Discussion started by: vickramshetty
10. Shell Programming and Scripting
I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Discussion started by: mitch