Search Results

Search: Posts Made By: chengwei
67,901
Posted By chengwei
Thanks! Got it. :D
Thanks! Got it. :D
67,901
Posted By chengwei
I'm able to get it done with sed but need to...
I'm able to get it done with sed but need to change from:

./XXXX.ZIP.AS
to
rm /home/dms/XXXX.ZIP.AS

How could I do this?
67,901
Posted By chengwei
I encountered: So I used this instead and...
I encountered:


So I used this instead and its working.

find . -name "*_TXT.TAR.AS" -print | sed 's/\(.*\)_TXT.TAR.AS/\1.ZIP.AS/' >> rmfile


But now my problem is that the first line in...
67,901
Posted By chengwei
Tried this, Made a mistake with my...
Tried this,


Made a mistake with my initial post. What I need was actually to change from "*_TXT.TAR.AS" to "*.ZIP.AS".
67,901
Posted By chengwei
What does the "1" in awk command meant? How does...
What does the "1" in awk command meant? How does it change into the string that I want?

Thanks!
67,901
Posted By chengwei
I did this: find . -name "*_TXT.TAR.AS"...
I did this:

find . -name "*_TXT.TAR.AS" -print -exec awk '{sub("_TXT.TAR.AS")}1' {} \;


and gotten the error messages:


What am I missing here?

Many thanks for the help.
67,901
Posted By chengwei
The values XXX_XXX are actually timestamp...
The values XXX_XXX are actually timestamp dynamically generated, hence I do not know them in advance. How would I be able to combine with the find command to achieve this?
67,901
Posted By chengwei
Parse and replace string in filename
Hi,

I've a filename of this format: "XXX_XXX_TXT.TAR.AS". Need to change the name into this format: "XXX_XXX.TAR.AS". This file resides in a directory. I'm ok with using the find command to search...
62,502
Posted By chengwei
Yep, that was what I did. Sorry for the late...
Yep, that was what I did. Sorry for the late reply.
62,502
Posted By chengwei
Hi all, my problems are resolved. Thanks for all...
Hi all, my problems are resolved. Thanks for all the help/suggestions.
2,451
Posted By chengwei
Actually for my command, if there's an error in...
Actually for my command, if there's an error in the moving, I'll see something in the text files?
2,451
Posted By chengwei
Getting a list of filenames of moved files
I'm moving a list of files of some extension and I wish to output the moved filenames into a text file, I tried using the command below, but after all the files are moved, I got a blank file.

find...
62,502
Posted By chengwei
Think the error was due to the server down. It's...
Think the error was due to the server down. It's ok now. Thanks!
62,502
Posted By chengwei
I got this after trying: What could...
I got this after trying:



What could be wrong?
62,502
Posted By chengwei
So if the URL call is: ...
So if the URL call is:

http://abc-mmm.com/ctxroot/abc/servlet?task=xyz

Is this what I should be doing?


(sleep 4; echo "GET /ctxroot/abc/servlet?task=xyz HTTP/1.1"; echo ""; sleep 5) |...
62,502
Posted By chengwei
I encountered the following message while running...
I encountered the following message while running the perl script:



Any idea what does it means?
62,502
Posted By chengwei
Unfortunately for me, Python is also not...
Unfortunately for me, Python is also not installed. Guess I'll have to use Perl then. Thanks!
62,502
Posted By chengwei
My URL call is actually invoking a servlet call....
My URL call is actually invoking a servlet call. I don't really need to display any HTML. So does it mean that I should just omit this line of code?


print $http->getlines();
62,502
Posted By chengwei
Sorry, how do I know if I've python installed?...
Sorry, how do I know if I've python installed? Actually I just need to invoke an URL, thats all, no need to output it to a file.
6,319
Posted By chengwei
Managed to get it done. Here's what I did: ...
Managed to get it done. Here's what I did:

find /path/to -type f -ctime +1 -name "*.log" -print | mailx -s "Log files Listing" "feedback@acme.com"
62,502
Posted By chengwei
URL call from SHELL script
My system does not have wget, curl and lynx. The chances are low that the SA would install them for me. Do I have any other way out? I need to invoke a few URL calls from my SHELL script.

Thought...
31,888
Posted By chengwei
Actually I want the current line to finish...
Actually I want the current line to finish executing before continuing to the next line. So do I still use the '&"?
31,888
Posted By chengwei
So regardless of what's happening inside the URL...
So regardless of what's happening inside the URL call, the next line of command inside the SHELL script would not execute until the URL call ended?
6,319
Posted By chengwei
I don't wish to send a file attachment. I just...
I don't wish to send a file attachment. I just want to send an email containing the listing of some folders to see the filenames & timestamp.
31,888
Posted By chengwei
Sequential execution in shell script?
I've a shell script that invokes a URL of an application to do some work, e.g., http://www.abc.com/myservlet?action=helloworld.Does the shell wait for a return value from the URL call before...
Showing results 1 to 25 of 28

 
All times are GMT -4. The time now is 10:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy