9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Could you please kindly explain what exactly the below SED command will do ?
I am quite confused and i assumed that,
sed 's/*$/ /'
1. It will remove tab and extra spaces .. with single space.
The issue is if it is removing tab then it should be Î right ..
please assist.... (3 Replies)
Discussion started by: Nandy
2. Shell Programming and Scripting
I found this in a script and I would like to know how this works
Code is here:
# echo $var2
I'm wondering how ##* makes the Shell to understand to pick up the last value from the given. (2 Replies)
Discussion started by: sathyaonnuix
3. Shell Programming and Scripting
can some one suggest me,how "sed" is managed to delete the second field here.
Any explanation on , how the below code is working would be appreciated.
sed 's/^\(*\)::/\1::/' /etc/passwd
sed 's/*:/:/2' /etc/passwd (14 Replies)
Discussion started by: panyam
4. Shell Programming and Scripting
I have the following line of code that works wonders. I just don't completely understand it as I am just starting to learn regex. Can you help me understand exactly what is happening here?
find . -type f | grep -v '^\.$' | sed 's!\.\/!!' (4 Replies)
Discussion started by: trogdortheburni
5. UNIX for Dummies Questions & Answers
I need a small help in understanding the below sed command.
$ cat t4.txt
1 root 1 58 0 888K 368K sleep 4:06 0.00% init
1 root 1 58 0 888K 368K sleep 4:06 0.00% init last
$ sed 's/*$//' t4.txt
1 root 1 58 0 888K ... (3 Replies)
Discussion started by: forroughuse
6. UNIX for Dummies Questions & Answers
I am trying to understand the following line of code.I did enough of googling to understand but no luck.Please help me understand the follow chunk of code:
X is the current script from which I am trying to execute.
Say if X=test.ksh
$MOD is echoing :... (3 Replies)
Discussion started by: vemana
7. Shell Programming and Scripting
I just started shell coding and I'm a bit confused on how 'mv' works can someone explain to me how it works and if i did this correctly. Thanks.
echo "Enter Name of the first file:"
if ; then
echo "Sorry, file does not exist."
... (16 Replies)
Discussion started by: taiL
8. Shell Programming and Scripting
I am trying to understand the sed command here.
adx001 $ a=/clocal/dctrdata/user/dctrdat1/trdroot/recouncil
adx001 $ b=`echo $a | sed 's/\//\\\\\//g'`
adx001 $ echo $b
The sed command i took it from the script.
Please... (3 Replies)
Discussion started by: mac4rfree
9. UNIX for Advanced & Expert Users
I needt o know how what init.d does and how it knows which dameons/applications to turn off and how to restart the applications after reboot. any OS - solaris/hp-ux (1 Reply)
Discussion started by: jigarlakhani