12-11-2007
I would like to get more familiar with sed if possible, but I am open to absolutely any suggestions.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how to parse the command line argument to look for '@' sign and the following with '.'.
In my shell script one of the argument passed is email address. I want to parse this email address to look for correct format.
rmjoe123@hotmail.com has '@' sign and followed by a '.'
to be more... (1 Reply)
Discussion started by: rmjoe
1 Replies
2. Shell Programming and Scripting
Hi,
I have a requirement. I have an application which can take a file as inputs. Now the file can contain any number of lines. The tool has to pick up the first uncommented line and begin processing it.
For example the file could be like this:
#MANI123|MANI1234
#MANI234|MANI247... (4 Replies)
Discussion started by: sendhilmani123
4 Replies
3. Shell Programming and Scripting
I have record line somthing like below with first line showing char spacing not real record line
1 | 2 | 3rd Field--------------|-4th field--| This is charcatersapcing of line
DF20000000000000000130.7890000000750
I shoudl get two line from above line
1st line should
1 | 2 | 3rd... (3 Replies)
Discussion started by: unishiva
3 Replies
4. Shell Programming and Scripting
I need to parse a string in a shell script. I understand there is some in built function to use that. can someone explain the syntax ?
Say, it is like this
#!/bin/ksh
read input
# input is entered as 'welcome'
#Now I want to extract say only first 4 characters or last four #characters.
... (19 Replies)
Discussion started by: asutoshch
19 Replies
5. Shell Programming and Scripting
Hi I Have log like this :
0 234: {
3 2: 04 EE
7 14: '20081114081'
23 1: 00
79 10: '38809'
91 15: '528111510010159'
143 29: 'Streaming/downloading service'
174 3: 'MTV'
179 43: 'rtsp://172.28/MTV2GO-Loop.sdp'
224 1: 05
... (10 Replies)
Discussion started by: justbow
10 Replies
6. Shell Programming and Scripting
Hello,
I'm a starting shell scripter and no Perl knowledge. I've trying to do this for a while:
I want to parse an XML file and get certain data out of it and write that data into a CSV file, all this using Shell Scripting (in Bash). Or Perl without any XML Parser/Interpreter (if possible).
... (1 Reply)
Discussion started by: Kage Musha
1 Replies
7. Shell Programming and Scripting
Below is a XML I have...
<?xml version="1.0" encoding="UTF-8" ?>
<component
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:XXXXX-www-Install-Manifest manifest.xsd"
xmlns="urn:qqqqq-Install-Manifest"
name="OM"
... (1 Reply)
Discussion started by: dashok.83
1 Replies
8. Shell Programming and Scripting
I have a xml file like this
<bul:collectionStrategy name="strategy1">
<bul:collectionTemplateGroup name="15min group"/>
<bul:collectionTemplateGroup name="hourly group"/>
</bul:collectionStrategy>
<bul:CollectionTemplateGroup name="hourly group" >
... (2 Replies)
Discussion started by: LavanyaP
2 Replies
9. Shell Programming and Scripting
I have a file parameters.txt which contains
151524
151525
I have another file OID.csv which contains
NE Version Object Type ID SDK param name Object OID
test1 Start: 4.2 End: 4.2 pan 151524 speed ... (5 Replies)
Discussion started by: LavanyaP
5 Replies
10. Shell Programming and Scripting
Well, issue is i have to parse this script to get the VERSION:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleAllowMixedLocalizations</key>
... (9 Replies)
Discussion started by: zorosinister
9 Replies
LEARN ABOUT LINUX
bosskill
BOSSKILL(8) System Manager's Manual BOSSKILL(8)
NAME
bosskill - send a signal to your boss, or terminate your boss
SYNOPSIS
bosskill [ -signal ] <bossname>
DESCRIPTION
bosskill sends the TERM (terminate, 15) signal to the boss with the specified bossname. If a signal name or number preceded by `-' is
given as the first argument, that signal is sent instead of terminate. The killed boss must be in the system administrator's supervisory
chain.
The following is a list of all signals with names as in the include file <signal.h>:
SIGHUP 1 hangup. Forces bossname to re-read his/her job description and figure out that he/she knows squat about sysadmin work or
life, in general.
SIGINT 2 interrupt. Prevents the bossname from interrupting the sysadmin for one hour.
SIGQUIT 3 quit. Causes the boss to quit his/her job with no explanation.
SIGILL 4 illegal instruction. Makes the boss believe the last instruction he/she gave was illegal, so he/she withdraws it.
SIGTRAP 5 trace trap. Display the exact location of the boss.
SIGABRT 6 abort. Makes the boss go home and try again tomorrow.
SIGKILL 9 kill. Game over.
SIGBUS 10 bus error. Boss's transportation fails on the way to work.
SIGSEGV 11 segmentation violation. Boss realizes he/she is trying to do something for which he/she is not quailified and stops.
SIGSYS 12 bad argument. Boss loses.
SIGPIPE 13 smoke pipe. Boss samples some green leafy substance and mellows out.
SIGALRM 14 alarm. Boss is startled and falls over. Best used when boss is walking next to his/her boss.
SIGTERM 15 termination signal. Boss is fired.
BUGS
Sending a SIGABRT to a boss that is already home will cause him/her to walk aimlessly in circles for two hours.
HISTORY
Written by Eric L. Pederson <eric@bofh.org.uk>.
27 September 1995 BOSSKILL(8)