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
Unable to open file dbname.mdf.
SQL SERVER 2000 Restore Question - 2 family members
unlock and unexpire oracle accounts through script
Copy multiple pages in Word using VBA
First try at a Linux shared library
Microsoft Access Database sharing over network
OWA Your session has timed out
need batch script to convert all the contents of a file to upper and lower case
Access Copy Forms--Save As
iterating through an array