Search Results

Search: Posts Made By: thelakbe
1,329
Posted By ahamed101
zgrep -l $j $k | xargs -I {} cp {} /dest/folder ...
zgrep -l $j $k | xargs -I {} cp {} /dest/folder


HTH
--ahamed
1,906
Posted By ahamed101
Try this... sed -n '/03:22:19,287/,/more/p'...
Try this...

sed -n '/03:22:19,287/,/more/p' input_file

You can pipe this to grep and grep whatever you want...

HTH
--ahamed
768
Posted By bartus11
find . -type f ! -name "log.20110624_09" ! -name...
find . -type f ! -name "log.20110624_09" ! -name "log.20110623_11" -exec rm -f {} \;
1,890
Posted By Franklin52
Try: awk NF file
Try:
awk NF file
34,938
Posted By bartus11
I think you want something like this: find ....
I think you want something like this: find . -name 'log.2011020*' -exec cp {} ~/temp \;
13,727
Posted By citaylor
The "rm" command can be passed the "-i" option...
The "rm" command can be passed the "-i" option for the user to confirm they actually want to delete the file, directory, etc. Lots of administrators alias the "rm" command so that it automatically...
978
Posted By Chubler_XL
How about something like this: bold=`tput...
How about something like this:

bold=`tput bold`
unbold=`tput sgr0`
while : ; do
clear
tput cup 1 1 ; echo 'FINDING THE FILES IN THE CURRENT PATH'
tput cup 5 1 ; echo 'PLEASE...
1,228
Posted By Scrutinizer
c = character special file (device) b = block...
c = character special file (device)
b = block special file (device)

The first character is not a permissions but rather describes the type of file
2,629
Posted By jim mcnamara
gunzip works ONLY on files: [filename.gz] It...
gunzip works ONLY on files: [filename.gz] It uncompresses files. gzip compresses files and makes file; [filename.gz]

-mtime +10 finds files older than 10 days. One year is older than 10 days.
1
SCP
2,497
Posted By ctsgnb
a <space> is missing Does the file...
a <space> is missing

Does the file /export/home/muthu/prod_12-09-2010 exist on your remote host ?
Is it a directory in which you want your directory to be copied, or is it the new name under...
2,851
Posted By pludi
No, it doesn't "eat" the time. ls will only...
No, it doesn't "eat" the time. ls will only display the date, without the time, for all files older than 6 months. If available, you could use the stat command to show the full date and time, or on...
1,565
Posted By ctsgnb
man chown man chmod see the -R option
man chown
man chmod

see the -R option
1,256
Posted By Chubler_XL
Use sort -t<delim> -k<start-fld>,<end-field> file...
Use sort -t<delim> -k<start-fld>,<end-field> file

eg:

$ cat sorttest
John,Doe,23,Montana
Jill,Doe,17,Louisiana
Bea,Frank,27,North Dakota
Rob,Frank,22,North Dakota

$ sort -t, -k2,3...
7
2,872
Posted By rdcwayx
-print is default option in find. find ....
-print is default option in find.

find . -name '*.log'
4
1,325
Posted By dgerman
find /path/to/files -type f -mtime +2 mtime...
find /path/to/files -type f -mtime +2

mtime is when contents of the file was modified
atime is when the file was accesed (read)
ctime is when the status was changed
3,479
Posted By methyl
Is the problem: a) The cron not running at...
Is the problem:

a) The cron not running at the correct time. If so, what is the correct time required?

b) Both crons failing. If so, the error should be in the mail messages for the owner of...
1,981
Posted By durden_tyler
The printf command prints three "ed" commands as...
The printf command prints three "ed" commands as shown below:


$
$ printf '3d\nw\nq\n'
3d
w
q
$
$


"3d" means delete line number 3.
"w" means write to file.
"q" means quit "ed"...
2,347
Posted By ocramas
Hi Thelak, Look, first of all, we're talking...
Hi Thelak,

Look, first of all, we're talking about "cron" jobs, alright ! ...

Look, the tasks that you need to perform could be done inside a script, so you prepare a script with the tasks that...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 08:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy