Search Results

Search: Posts Made By: Henryyy
3,385
Posted By Scrutinizer
Regarding the security aspect, what is probably...
Regarding the security aspect, what is probably meant by this is that $@ can be expanded into separate fields each within double quotes, thus protecting the fields from unwanted interpretation by the...
3,385
Posted By Skrynesaver
When I call this file #!/bin/bash echo...
When I call this file

#!/bin/bash

echo -e "With \$* I have to chose all or nothing"
echo "ALL"
for i in "$*" ; do
echo -e "\t$i"
done
echo "NOTHING"
for i in $* ; do
echo -e...
11,859
Posted By methyl
From one example of man ls , a man page which you...
From one example of man ls , a man page which you may wish to read on your system.

-f Interpret each argument as a directory and list the name
found in each slot. ...
12,693
Posted By methyl
Quick answer in Bourne-type shells. This is...
Quick answer in Bourne-type shells.
This is what the administrator set for your terminal.
echo $TERM
1,434
Posted By birei
Then, try: $ str=".a/b/c/done" $ echo...
Then, try:

$ str=".a/b/c/done"
$ echo "${str##*/}"
done
Regards,
Birei
1,453
Posted By methyl
Mostly Shell: Count the number of "/"...
Mostly Shell: Count the number of "/" characters, prepend the number to the line, sort, remove the prepended field.
#!/bin/ksh
cat filename.txt | while read line
do
count=`echo...
1,043
Posted By bartus11
find -atime +30 -type f >olds
find -atime +30 -type f >olds
Showing results 1 to 7 of 7

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