Search Results

Search: Posts Made By: JC_1
3,539
Posted By Franklin52
for i in $(ls) Using ls is superfluous, this...
for i in $(ls)

Using ls is superfluous, this is sufficient:
for i in *
3,539
Posted By pamu
sed 's/\/subject\/grin\*/\/subjects\/$i/g'
sed 's/\/subject\/grin\*/\/subjects\/$i/g'
4,770
Posted By edidataguy
Try this:STR=$(strings MR* | grep MoCoseries) ...
Try this:STR=$(strings MR* | grep MoCoseries)
Beware: you have to code for "What happens if the string is not found"
6,528
Posted By Corona688
ls -S sorts by file size. The largest one comes...
ls -S sorts by file size. The largest one comes first.

As for how I get it into $1 $2, try this:

set -- a b
echo $1
echo $2
6,528
Posted By Corona688
I think I misunderstood. They're in 100...
I think I misunderstood. They're in 100 different directories, not in one pile, ergo they can be differentiated. Okay.

find /path/to/base -type d | while read LINE
do
set -- $(ls -S...
Showing results 1 to 5 of 5

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