Search Results

Search: Posts Made By: regraphix
2,549
Posted By 47shailesh
if you use 20 it will touch every 20th file and...
if you use 20 it will touch every 20th file and that's why number of new files are less.
for 20% use [ `expr $N % 5` -eq 0 ].
2,549
Posted By neutronscott
sorry. the line i gave replaces the ls | while...
sorry. the line i gave replaces the ls | while loop. this for loop will give $file a full path, so you can touch the file no matter your working directory.


#!/bash/sh...
2,549
Posted By Corona688
What's your system? What's your shell? N=0 ...
What's your system? What's your shell?

N=0

ls /home/user/Desktop | while read FILE
do
[ -f "$FILE" ] || continue # Skip things which aren't files

# % is remainder of...
Showing results 1 to 3 of 3

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