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
New to plsql and want to create a cursor with an alias column. I seem to be having problems display this alias after it is fetched.
550 Relay not permitted
MAIL.mymailserver.com #5.7.1 smtp;550 5.7.1 country ip access denied; ip xxx.xxx.xxx.xxx
Server 2008 w/AD lose SMB access
MS SQL Stored procedure call problem
Using VLOOKUP with format color
Screen Freeze
Launch Outlook Team Calendar from within VB.NET application
SQL Server 2005 SP2 - Can't Apply Hotfix to SQL Cluster Node
Microsoft console based script host error