10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a log with entries like:
: target thumb C++: libwebcore <=... (8 Replies)
Discussion started by: glev2005
2. Shell Programming and Scripting
Will someone give me an explanation on how the sed command below works.
Thanks! (3 Replies)
Discussion started by: scj2012
3. Shell Programming and Scripting
I suppose that this is not actually a script question, but I noticed this while working on a bash script homework assignment and I have been impressed with the quality of posts here -- so that is why I posted it here.
I have this text file named textfile:
-rwxr-xr-x 1 joeblow... (2 Replies)
Discussion started by: landog
4. UNIX for Dummies Questions & Answers
can someone please explain the below sed command..
sed 's/\(*|\)\(.*\)/\2\1/' (6 Replies)
Discussion started by: raghu_shekar
5. Shell Programming and Scripting
I want to do a very simple thing with sed. I want to print out the line number of a disk I have defined in /etc/exports, so I do:
It's all good, but here's the problem. When I define md0 in a variable, I get nothing from sed:
Why is that? can anybody please help?
Thanks (2 Replies)
Discussion started by: alirezan
6. Shell Programming and Scripting
The following command works fine for me, but I could not grasp the logic working behind of sed command, it's obscure to me :( :confused:
echo "./20080916/core/audioex.amr" | sed "s%\(\)/%\1_%g"
Could anyone please explain to me in detail, that how... (6 Replies)
Discussion started by: royalibrahim
7. Shell Programming and Scripting
I've written a small script to replace certain words in all the the files in a directory.
#Get list of files to be edited
for i in $file_list
echo "Processing $i"
alteredi=`echo "$i" | sed -e 's/\//d/'`
#actual altering (2 Replies)
Discussion started by: Peetrus
8. UNIX for Advanced & Expert Users
$ echo a.bc | sed -e "s/\|/\\|/g"
Is the behavior of the sed statement expected ? Or is this a bug in sed ?
Linux 2.6.9-22.214.171.124.2.ELsmp #1 SMP Wed May 2 14:59:56 PDT 2007 i686 i686 i386 GNU/Linux (8 Replies)
Discussion started by: vino
9. Shell Programming and Scripting
Could you please explain me the below statement -- phrase wise.
sed -e :a -e '$q;N;'$cnt',$D;ba' abc.txt > xyz.txt
if suppose $cnt contains value: 10
it copies last 9 lines of abc.txt to xyz.txt
why it is copying last 9 rather than 10.
and also what is ba and $D over there in... (4 Replies)
Discussion started by: subbukns
10. Shell Programming and Scripting
whats the difference between excuting a shell script as
i noticed that my shell script works fine when i run it as . ./myscript
.sh but fails when i run it as sh myscript.sh could anybody explain why.
the shell script is very simple
... (9 Replies)
Discussion started by: xiamin