Search Results

Search: Posts Made By: Davinator
3,705
Posted By pamu
Try something this... find /pathname/...
Try something this...


find /pathname/ -type f -name *.7z | while read folder
do
fold_path=$(echo "$folder" | awk -F "/" '{$NF=""}1' OFS=/ ) #Get the folder path which has .gz files.

if...
2,386
Posted By chihung
put the original folder together with the dir...
put the original folder together with the dir name together and sort base on the 2nd field.


sep="|"
while read d
do
# get rid of the trailing /
dd=${d%/}

# print the orginal and...
3,671
Posted By Corona688
You have a very odd version of grep then, which...
You have a very odd version of grep then, which is possible on an embedded system I suppose! :)
3,671
Posted By bartus11
Try: find . -type f -name "*.jpg" -exec dirname...
Try: find . -type f -name "*.jpg" -exec dirname {} \; | sort | uniq| sed "s/'/\\\'/g" | xargs -i touch {}/.pictureBTW, try fixing your directory names before processing, because Linux really doesn't...
6,238
Posted By DGPickett
sort -t'(' +1 or a bubble sort in an array.
sort -t'(' +1

or a bubble sort in an array.
1,445
Posted By saw7
try this: sed -n...
try this:
sed -n '/<Profile_/s/.*ABCD="\(.*\)".*/\1/p' file

or maybe :

awk '/-/{printf("{%s}\n",$1)}' RS="[{}]" file
Showing results 1 to 6 of 6

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