09-25-2008
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any cut or awk function that would allow me to take the last part of a path away and save the list into a file? I wrote:
find $HOME -mtime +3 > fileList
cat fileList
/home/102/s/jn/folder/HW
/home/102/s/jn/otherfolder/B.txt
/home/102/s/jn/folder4/3dA/w... (1 Reply)
Discussion started by: terms5
1 Replies
2. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
3. Shell Programming and Scripting
First I have to say thank you to this community and this forum. You helped me very much builing several useful scripts.
Now, I can't get a solution the following problem, I'm stuck somehow. Maybe someone has an idea.
In short, I dump a site via lynx and pipe the output in a file. I need to... (7 Replies)
Discussion started by: lowmaster
7 Replies
4. Shell Programming and Scripting
File having data in following format :
file name : file.txt
--------------------
111111;name1
222222;name2
333333;name3
I want to read this file so that I can split these into two paramaters i.e. 111111 & name1 into two different variables(say value1 & value2).
i.e val1=11111 &... (2 Replies)
Discussion started by: sjoshi98
2 Replies
5. Shell Programming and Scripting
Hello,
How to cut a char(s) for a word using perl??
I want to cut the number(s) from these sample words:
Port-channel24
Po78
Po99
Port-channel34
$word = "Port-channel24";
I want to put only the number in a varible.
Appreaciate using simple way in order to use it... (3 Replies)
Discussion started by: ahmed_zaher
3 Replies
6. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
7. Shell Programming and Scripting
Can someone help me to make this code without cutting off words ni the string?
awk '{for(i=1;i<length;i+=100) print substr($0,i,100)}'
Thank you! (4 Replies)
Discussion started by: sanantonio7777
4 Replies
8. Shell Programming and Scripting
I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt. Help me. Thanx in advance. I have attached the input... (4 Replies)
Discussion started by: sachit adhikari
4 Replies
9. Shell Programming and Scripting
Hi All,
I am looking for a perl/awk/sed command to auto-increment the numbers line in file, P1.tcl:
run_build_model sparc_ifu_dec
run_drc
set_faults -model path_delay -atpg_effectiveness -fault_coverage
add_delay_paths P1
set_atpg -abort_limit 1000
run_atpg -ndetects 1000
I would like... (6 Replies)
Discussion started by: jypark22
6 Replies
10. UNIX for Beginners Questions & Answers
I have a multicolumn text file with header in the first row like this
The headers are stored in an array called . which contains I want to search for each elements of this array from that multicolumn text file. And I am using this awk approach
for ii in ${hdr}
do
gawk -vcol="$ii" -F... (1 Reply)
Discussion started by: Atta
1 Replies
LEARN ABOUT DEBIAN
fence_rsb
fence_rsb(8) System Manager's Manual fence_rsb(8)
NAME
fence_rsb - I/O Fencing agent for Fujitsu-Siemens RSB
SYNOPSIS
fence_rsb [OPTION]...
DESCRIPTION
fence_rsb is an I/O Fencing agent which can be used with the Fujitsu-Siemens RSB management interface. It logs into an RSB device via tel-
net and reboots the associated machine. Lengthy telnet connections to the RSB device should be avoided while a GFS cluster is running
because the connection will block any necessary fencing actions.
fence_rsb accepts options on the command line as well as from stdin. Fenced sends parameters through stdin when it execs the agent.
fence_rsb can be run by itself with command line options. This is useful for testing.
Vendor URL: http://www.fujitsu.com
OPTIONS
-a IPaddress
IP address or hostname of the RSB device.
-h Print out a help message describing available options, then exit.
-l login
Login name.
-n telnet_port
The port number on which the telnet service listens.
-o action
The action required. This can be reboot (default), off, on, or status.
-p password
Password for login.
-S path
Full path to an executable to generate the password for login.
-v Verbose. Print informational messages to standard out.
-V Print out a version message, then exit.
STDIN PARAMETERS
agent = < param >
This option is used by fence_node(8) and is ignored by fence_rsb.
ipaddr = < hostname | ip >
IP address or hostname of the device.
telnet_port = < port number >
The port number on which the telnet service listens.
login = < param >
Login name.
option = < param >
The action required. This can be reboot (default), off, on, or status.
passwd = < param >
Password for login.
passwd_script = < param >
Full path to an executable to generate the password for login.
SEE ALSO
fence(8), fence_node(8)
fence_rsb(8)