Command meaning


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Command meaning
# 1  
Old 04-13-2006
Command meaning

I know tr stands for table if i am not wrong but what does this whole command means can anyone give an idea ?

| tr ' ' '\n' | sed -e "s/.*[H,h][R,r][E,e][F,f]=\"\(.*\)\".*/\1/g
# 2  
Old 04-13-2006
tr stands for translate characters.

Let me try this:

Substitute where you find a file that begins with a dot (.) followed by anything that has a capital H or lowercase h or uppercase R or lowercase r or Uppercase E or lowercase e or Uppercase F or lowercase r followed by an = sign followed by a double quote ("). \(.*\) means to save all the text on the line but only up until another double qoute (") is found. The \1 means to restore the line without leading spaces and the /g means global. /g means do it for every single line.

| tr ' ' '\n' | sed -e "s/.*[H,h][R,r][E,e][F,f]=\"\(.*\)\".*/\1/g

It's not perfect but it's my best guess for now. Someone else can correct it but it's close. (I think)
# 3  
Old 04-13-2006
Thanks a bunch dude. i was mixing these commands with html lol.. i am new to unix so trying my best to know about scripting .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compile command meaning?

cc -Wall -c ctest1.c ctest2.c whats meaning of -(hyphen before c and wall) (1 Reply)
Discussion started by: mahor1989
1 Replies

2. UNIX for Dummies Questions & Answers

Meaning of command ls -la

Hello everyone, I just began studying solaris 10. I have tried searching for the meaning of this command (ls -la ). Can anyone please explain to me what the command ls -la does? example ls -la /etc Thank you (5 Replies)
Discussion started by: cjashu
5 Replies

3. UNIX for Dummies Questions & Answers

meaning of swap -s command

Hi, Please explain about the command and its output swap -s in a very detailed manner (3 Replies)
Discussion started by: Ajoy
3 Replies

4. Shell Programming and Scripting

Meaning of "b" modifier in "sort" command

I need to sort the following file by the rhdiskpower devices in the last column: Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path 1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Discussion started by: wjssj
3 Replies

5. Shell Programming and Scripting

^$$ meaning

Hi , Can anyone please let me know whta the follwoing piece of code for ScriptName=${0##*/} if pgrep -f "$ScriptName" | grep -v "^$$\$" ; then echo `date`": Sctipt $ScritName is already runnig" exit fi Thnx a lot in advance Please use code tags when posting data and code... (8 Replies)
Discussion started by: Pratik4891
8 Replies

6. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. UNIX for Dummies Questions & Answers

passwd command what is the meaning

Hello to everybody i have question i do the passwd -s -a commando and what to knos what is the meaning of the second row. PS NL LK to the side is the date of expiraton and then a 7 a 90 what is the meaning of all that? tHANK YOU FOR YOUR TIME. (1 Reply)
Discussion started by: enkei17
1 Replies

8. AIX

What's meaning of "POWER" in diag command.?

I ran 'diag' command to verify disk follow the below steps. DIAG------?task selection-------ssa service aid-----Link verification I found that there are 3 types of status. (Good, Failed and Power). scp2: pdisk23 D69E584F 0 16 Power scp2: pdisk19 D657E7A9 1 15 Power scp2: pdisk28... (1 Reply)
Discussion started by: pattarapongn
1 Replies

9. Shell Programming and Scripting

sed command meaning

Thanks guys for helping me out (2 Replies)
Discussion started by: chris1234
2 Replies

10. UNIX for Advanced & Expert Users

Command meaning.

what does it mean set linesize 200; set linesize 2000; i am spooling the data into a file .When i give 200 the size of file is 72MB. When i give 2000 its 720 MB.How do i know if i am getting all the data.......? (2 Replies)
Discussion started by: praveen.pinto
2 Replies
Login or Register to Ask a Question