Search Results

Search: Posts Made By: sanjaydubey2006
7,322
Posted By bakunin
@agent.kgb: You don't need GNU-tar, it is...
@agent.kgb:

You don't need GNU-tar, it is possible with a standard tar too by untarring to stdout:

tar xf - /path/to/file.tar | grep "<what-you-search>"

@sanjaydubey2006:

As far as i can...
1,899
Posted By Scrutinizer
Try: awk '!(NR%1000)' infile
Try:
awk '!(NR%1000)' infile
1,384
Posted By jgt
If you sort the file into reverse order then the...
If you sort the file into reverse order then the latest child is located first.

nl input |sort -r -n
27,843
Posted By radoulov
find . -type f -name '*.*.mp3' -exec rm {} + ...
find . -type f -name '*.*.mp3' -exec rm {} +

Attention: the command above will remove all the files that have two (2) dots in their names and end by .mp3!

Make sure you have a valid backup...
1,867
Posted By ahamed101
Something like this? for i in...
Something like this?


for i in ${SUB_ARR[@]}
do
SUB_LIST=$i'_LIST'
for j in $(eval echo \${$SUB_LIST[@]})
do
echo $j
done
done


HTH
--ahamed
13,015
Posted By methyl
The only really safe way is to run cat once for...
The only really safe way is to run cat once for every file. Also by avoiding "ls" we can deal with filenames containing space characters.


# Initialise concatonated file (which is not in this...
Showing results 1 to 6 of 6

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