Search Results

Search: Posts Made By: mij
6,810
Posted By MadeInGermany
You can set IFS="" for the entire loop, then it...
You can set IFS="" for the entire loop, then it works for the read and the ls
(
IFS=
while read -r FILENAME; do ls -d1 $FILENAME; done < ~/files.lst
)
# subshell ended. The original IFS is...
6,810
Posted By RudiC
That's two problems that you can't solve with one...
That's two problems that you can't solve with one generic approach. For your special setup above, try while IFS= read -r FILENAME; do echo "$FILENAME"; ls -d1...
5,581
Posted By Corona688
Here's an example using an old disk image I...
Here's an example using an old disk image I happened to have around:

$ /sbin/fdisk -ul gorgon-aug-7.img
You must set cylinders.
You can do this from the extra functions menu.

Disk...
2,554
Posted By Scrutinizer
Try: eval v=\${$x} echo "$v"
Try:
eval v=\${$x}
echo "$v"
9,970
Posted By jlliagre
find /path/to/files -not -user myname -print...
find /path/to/files -not -user myname -print -exec chown myname "{}" +
11,657
Posted By radoulov
Try to quote the variables: ...
Try to quote the variables:


FS_ROOT=/home/sysadmin/t
FS_EXCLUDE=( \( -path "$FS_ROOT/dev" -o -path "$FS_ROOT/.*" \) -prune -o )
find "$FS_ROOT" "${FS_EXCLUDE[@]}" -type d -not -perm 2770 -exec...
11,952
Posted By jim mcnamara
'$3' does not allow the shell to expand the...
'$3' does not allow the shell to expand the variable use double quotes
Showing results 1 to 7 of 7

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