The sed command gives the command to move the files. The output is piped to sh to execute the command. Check the output first without the coloured part:
Thanks for this quick answer. Can you explain me in detail what sed do in this case?I know sed for is basic function, substitution only. I like to understand this complex command.
Hi,
I am writing an ebuild for Gentoo Linux operating system.
Writing an ebuild is about Bash scripting where I am a newbie.
So, my ebuild must find a part of a specific filename.
Such a filaname my look like this:
libvclient_release_x64.so.740and I must to find the number at the and of... (18 Replies)
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My code:
if
then
set "subscriber" "promplan" "mapping" "dedicatedaccount" "faflistSub" "faflistAcc" "accumulator"\
"pam_account";
for i in 1 2 3 4 5 6 7 8;... (0 Replies)
Hi All,
Thanks in Advance
I am working on a shell script. I need some assistance.
My Requirement:
1) There are some set of files in a directory like given below
OTP_UFSC_20120530000000_acc.csv
OTP_UFSC_20120530000000_faf.csv
OTP_UFSC_20120530000000_prom.csv... (0 Replies)
Hi All,
I have the file & name is "/a/b/c/d/e/xyz.dat"
I need "/a/b/c/d/e/" from the above file name.
I tryning with echo and awk. But it not come. Please help me in this regard.
Thanks & Regards,
Dathu (3 Replies)
Hi All,
I'm trying to get part of a filename and my skill with regular expression are lacking. I know I need to use SED but have no idea how to use it. I'm hoping that someone can help me out. The file names would be:
prefix<partwewant>suffix.extension
the prefix and suffix are always 3... (4 Replies)
Hi... can anyone please tell how do i strip off the leading filename from the wc -l command....
when i fire command
wc -l new1
... its giving output as
14 new1
i want the output as just '14'...
i need to use this value in the calculations in the later part of the script..... (2 Replies)
I like to have the date in the 2008-09-01 format at the beginning of my filenames. I then hyphenate after that and then have my filename.
I have a script that creates this for me. However, I may be working on files that already have the date format already in there and so I don't want to have a... (4 Replies)
Hi,
I need to extract only a part of the filenames of some files. The files are named this way :
.tap_profile_SIT02
I want the "SIT02" part, which is not the same for each file. I was able to get what I want with bash, but not with ksh. Here is the command I used in bash :
find... (8 Replies)
Hey,
How to strip the extention from filename?
MY_XML.xml -> MY_XML
MY_TEST_FILE.txt -> MY_TEST_FILE
HELLO_WORLD.xls -> HELLO_WORLD
Thanks in advance! (2 Replies)