Microsoft
Software
Hardware
Network
Question : korn shell scripting ... extract part of the file name ?
Hai !
This is my question.
i have a file something like my_file_20080810.dat
now i need to look for the file in a folder and then grab the timestamp.
cd directory_in_which_file_is
_present
ls -1 | wc -l =====> if count =1 then ok and now i need to pull the timestamp.
Answer : korn shell scripting ... extract part of the file name ?
The timestamp in the name of the file? then try cut:
ls -1 *.dat | cut -d'_' -f 3|cut -d'.' -f1
Random Solutions
Error 0x800CCC80: None of the Auth. methods supported
Messages disappearing or not appearing at all in outlook 2007 in SBS 2003R2 and Exchange 2003 environment.
How to fix error code 39 installing a Fujitsu Scansnap S510?
How to Greyed Out "Rules Wizard" in Outlook on Shared Mailbox.
How do I force an autopostback from a textbox in asp.net after each keystroke
SidebySide error.
How to deconcatenate a field that has tmultiple ASCII Char(13) int the string
Can anyone tell how we make sliding menu
Http error
Webmail shows list of emails but cannot open or create a new message. Help!?