I am trying to search for all files with "*20*" in the file name, but this command keep searching subdirectories.
I need to search only at the current level.
find . -name "*.20*" -mtime +10;
I have tried -prune, -depth, but still no luck.
Any thoughts?
Getting the following message on this:
drwxr-xr-x 2 xxxxxxx xxxxxxxx 256 Oct 17 16:01 configtool
tar -cvzf configtool.tar configtool
tar: Not a recognized flag: z
Usage: tar -{c|r|t|u|x} [-BdFhilmopsvw]
[-Number] [-fFile]
[-bBlocks] [-S [Feet] [Feet @Density]...
Need to create db2 where clause to het current day - 30 days, in the format of 2006051800 to compare against datetime field. 00 can be appended, I hope.
Thanks in advance.
I have two options. Get unix current date -30 days, and feed that into a db2 where clause, or have the db2 where clause itself get current daye - 30 days, in the format of char 2006051800. 00 can be appended, I hope.
Thanks in advance.
I have log file that contains job names with start and end times. I have to search through the log to find "jobname started" and hold it, then search again for "jobname ended", and then report the jobname, start time, end time, elapsed time.
I have 12 jobs to search for and report on, so that...
I currently use the below script to modify a file, but I have to find a string starting in postion 37, like "19012", and delete that row, and continue with the rest of the script.
How do I NOT print that row out?
1==NR { print; next }
NR>2 { print fix(line) }
{line = $0}
END { print line }...
I have installed embaraderos rapid sql software, but I do not have an odbc driver for db2. Any suggestions on where to find one? If I do a search, I get all sorts of hits, but I just want the one driver, not a suite of drivers. Also, are there any free ones out there?
Hi,
I have a batch file with a header and trailer record, with dataline records in the middle. I need to replace only the rows with a space in column 10 with the number 3, and not alter other rows, or the header and trailer.
99999123 ACCOUNT DATA Header
123456789012345678901234567890...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.