10 More Discussions You Might Find Interesting
hey 1 more question, how do you strip tags like <p></p> from output of xml with perl?
i already strip the CDATA but the annoying <p></p> still there (2 Replies)
Discussion started by: Nick1097
2. Shell Programming and Scripting
i want to parse a string and only display the digits in that string... How would i accomplish this with sed command.
input string: " 033434343 dafasdf"
output string: 03343434
Thanks (2 Replies)
Discussion started by: timmylita
3. Shell Programming and Scripting
I have to write a sed script which removes http and https from a URL. So if
a URL is https://www.example.com or Example Web Page, script should return me Example Web Page
i tried echo $url | sed 's|^http://||g'. It doesn't work. Please help (4 Replies)
Discussion started by: vickylife
4. UNIX for Dummies Questions & Answers
i am pretty new to awk... here my problem.
My input is something like this:
type: NSR client;
save set: /, /var, /part, /part/part2, /testpartition,
/foo/bar,... (9 Replies)
Discussion started by: bazzed
5. Shell Programming and Scripting
This command gives me just the filename without any extension:
evrvar =`echo filename.tar | sed 's/\.*$//'`
I am trying to make a change to this command... to make it work for... filename.tar.gz to get just the filename....
currently the command gives me filename.tar by removing only gz... I... (9 Replies)
Discussion started by: devs
6. UNIX for Dummies Questions & Answers
I have a script that is (among other things) doing the following:
ncftpls -u <user> -p <password> -x "-l1" server.domain.tld > $list
cat $list | nl
echo "Choose file: "
cat /tmp/list1.txt | nl | grep $file | sed -e "s/$file//g" -e "s/ //g" | column -t... (8 Replies)
Discussion started by: noratx
7. UNIX for Dummies Questions & Answers
I'm using the SED instruction for substitution in a shell script. I'd like to improve it a bit. The instruction looks like this right now:
sed '/PRAGMA/!s/package/apps.package/g' $fich_src
I'm replacing the word "package" by "apps.package" for all the lines of the file $fich_src... (11 Replies)
Discussion started by: greg
8. Shell Programming and Scripting
I have written a shell script and in my script i have a variable
now, i want another variable to be defined for which i have to strip out the extension fo the file name,
i.e. newvariable= myfile
how do i strip out the ".txt" part from my first variable.
Any kind of help... (4 Replies)
Discussion started by: ramky79
I have one shell script which is calling a C executable. That C executable returns a value depending upon operations inside the C code. But how to get that value in the calling shell script?
The syntax of calling the C executable is like --
C_exec <argc no> <argument1> <argument2> etc... (5 Replies)
Discussion started by: k_bijitesh
10. UNIX for Dummies Questions & Answers
how can i strip the last line off my file using shell script?
Thanks and Regards
Vivek.S (3 Replies)
Discussion started by: vivekshankar