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
Coldfusion output in javascript
nl2br in Perl? - Need to format output and add newlines
How to Clone two identical server running on Raid 5
exchange 2007 mailbox server install fails with"Access to address list service on all Exchange 2007 servers has been denied
DFS-R - generating random files without file type
How to isntall the ODBC DSN for Symantec Endpoint
Linking with Windows 2000 Servers Active Directory
Microsoft .chm free software
Java and Action Script games
Sharing files with clients