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
Sharepoint "look and feel"
Outlook auto accept meeting request not working
Unable to import text file into table in Microsoft Access 2003
unix find command fails in script - works on command line
Administrator Account is getting locked out
database redesign
Windows 2003 profile directory location
Warning: Fatal error 7987
How do I get Comparison Operators working in JavaScript?
Calculating VAT