Search Results

Search: Posts Made By: amitg
31,296
Posted By amitg
Since you cannot have multiple files having the...
Since you cannot have multiple files having the same name in the directory, you will need to delete the existing file and create your link or call your link something else.
14,385
Posted By amitg
Not sure I understand, can you provide an example...
Not sure I understand, can you provide an example of the desired output?
19,826
Posted By amitg
Sorry, didn't read your message correctly (coffee...
Sorry, didn't read your message correctly (coffee machine is broken)

To get files greater than 0 bytes: "find . -size +0c"
19,826
Posted By amitg
You could just do "find . -size 0c"
You could just do "find . -size 0c"
14,385
Posted By amitg
Sri Since you want to count the number of...
Sri
Since you want to count the number of lines, how does it matter if a file has 0 bytes? You could simply do "cat * | wc -l" to get the line count.

Amit
7,707
Posted By amitg
Correction -- it should be for i in `ls...
Correction -- it should be

for i in `ls -1`; do echo $i; bzip2 $i ; done

(-1, instead of -l)
7,707
Posted By amitg
Thanks for the response. You're right, I just...
Thanks for the response. You're right, I just needed to gzip the files. I do want them individually though (for various reasons). The command that I eventually stumbled on and which works fine is :
...
7,707
Posted By amitg
Create individual tgz files from a set of files
Hello
I have a ton of files in a directory of the format app.log.2008-04-04

I'd like to run a command that would archive each of these files as app.log.2008-04-04.tgz

I tried a few...
Showing results 1 to 8 of 8

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