Search Results

Search: Posts Made By: rohit_shinez
26,179
Posted By rohit_shinez
hi don, let me tell what i needed is 1....
hi don,

let me tell what i needed is
1. I want to exclude files starting with AUS and ending with either .csv or .txt alone
2. to exclude if any sub directories present in my directory becoz...
26,179
Posted By rohit_shinez
hi Don, yeah thats what i mean to invoke...
hi Don,

yeah thats what i mean to invoke directory but my files with AUS.2013.txt is also getting exlcuded which i dont wanted. only files ending with .txt and .csv and starts with AUS should be...
26,179
Posted By rohit_shinez
Hi I don't wanted to use cd test rather than...
Hi I don't wanted to use cd test rather than accessing the direct path
26,179
Posted By rohit_shinez
hi when i am using the test directory...
hi

when i am using the test directory getting the below error


gzip `ls test| egrep -v "AUS.*csv|AUS.*txt"`

gzip: can't stat: NZ.csv (NZ.csv): No such file or directory
gzip: can't stat:...
26,179
Posted By rohit_shinez
Makarand, I need to use your code by...
Makarand,

I need to use your code by invoking directory path which i have mentioned in my previous post will the below one work


gzip `ls $directory/| grep -v "AUS.*csv" | grep -v "AUS.*txt"`
26,179
Posted By rohit_shinez
Hi Alister, will it be possible with your...
Hi Alister,

will it be possible with your find command to exclude files starts with AUS and ends with either .csv or .txt i need to exclude AUS.txt and AUS.csv

Makarand

That really worked...
26,179
Posted By rohit_shinez
it starts with AUS and ends with either .csv or...
it starts with AUS and ends with either .csv or .txt i need to exclude AUS.txt and AUS.csv
26,179
Posted By rohit_shinez
Thanks guys i will try these but i need to...
Thanks guys i will try these but i need to exclude file combinations how can i do that for e.g.

cd direct
AUS1.txt
AUS2.txt
NZ1.txt
AUS1.csv
AUS2.csv
USA.tx


i need to exclude file...
26,179
Posted By rohit_shinez
hi there will be other files other than NZ it was...
hi there will be other files other than NZ it was just an example i want to exclude only files starting with AUS using gzip command
26,179
Posted By rohit_shinez
hi is it possible without loop becoz this is will...
hi is it possible without loop becoz this is will impact the performance becoz there are huge number of files in the directory with huge sizes
26,179
Posted By rohit_shinez
Exclude files in gzip command
hi,

I would like to exlcude certain files which starts with AUS from a directory while gzip the files but i need it in gzip command only


direct:
AUS1.tx
AUS2.txt
NZ1.txt


i want to...
Showing results 1 to 11 of 11

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