Search Results

Search: Posts Made By: pkabali
2,211
Posted By mirni
'sh' is shell (usually /bin/sh, which is usually...
'sh' is shell (usually /bin/sh, which is usually a symbolic link to bash, dash, ksh or other shell).
So by piping a command to shell, it gets executed. Simple like that.

E.g.:

$ echo cat...
9,179
Posted By kurumi
go through the columns, check for "etime", if...
go through the columns, check for "etime", if found, print column 1 and the etime colum. NF means number of fields
6,445
Posted By alister
Well, Chubler_XL's solution could be written on...
Well, Chubler_XL's solution could be written on one line if one was so inclined (there's nothing in the shell grammar that prevents it).

Also, the approaches are not equivalent. Chubler_XL's...
6,445
Posted By Chubler_XL
Try this - replace echo with actual move when...
Try this - replace echo with actual move when your happy it's working:

for file in *
do
[ -f "$file" ] || continue
case "$file" in
*.sh)
# Not to be moved
;;
...
Showing results 1 to 4 of 4

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