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
Scheduled Backups not working
Actionscript - Simple Image Swap fade in-out
How do I change the default website in IIS to point to a Sharepoint subsite?
Unable to send using SMTP
Recieving spam using my own email address?
Sharing printer drives to 32-bit XP with a 64-bit Windows 2003 R2 Server
Analysing traffic in a Netscreen 208 using command prompt
Query help
CD/DVD drive not found after reboot (CODE 41), replaced with a spare drive and getting same error
Need lots of info about VPN (Explanation please)