Search Results

Search: Posts Made By: jafa401
3
2,228
Posted By jafa401
Reduce
printf "\nClosing stats:\n" >> data.txt
echo >> data.txt
sed 's/^ \t*//;/^#/d;/^$/d' $stats | while read line
do
close=$(grep -w "^$line" $datafile | sed -e...
1,353
Posted By jafa401
Need help to Simplfy
while [[ "$vrfy" != "true" && "$vrfy2" != "true" ]];
do
echo "ID format - 000-000-000"
read -p "Enter Name: " usrnme
read -p "Enter ID: " id
if...
10,570
Posted By jafa401
Color code my vi
i am running under ssh
i want to know how to make vi color code my bash scripting

like how do i setup vim in ssh
2,661
Posted By jafa401
ok so i am probably gonna stick redirection for...
ok so i am probably gonna stick redirection for errors way then
2,661
Posted By jafa401
i have tested it with eq 0 doesnt really work...
i have tested it with eq 0
doesnt really work
:(
2,661
Posted By jafa401
if [ `find ./ -size +20k | wc -l` -eq 0 ]; then...
if [ `find ./ -size +20k | wc -l` -eq 0 ]; then echo "found files";else

So i didnt really need to pipe errors to dev/null

if can just count it then
so i would have to use eq operator?
2,661
Posted By jafa401
so instead of putting all errors to /dev/null...
so instead of putting all errors to /dev/null you
instead counted the output and if its greater then 0

see i got an else statement if the output is not 0
so counting it wouldnt work right?
2,661
Posted By jafa401
var1=$(find ./ -size +10k 2> /dev/null) ...
var1=$(find ./ -size +10k 2> /dev/null)
if [[ $var1 = "" ]]
then
# rest of the of script


Ok i want to cut back on making vars
i trying to...
2,661
Posted By jafa401
the vartext has results from a find command
the vartext has results from a find command
2,661
Posted By jafa401
Simplfy
I feel that i can Simplfy this but i am not fully sure how
vars1=$(cat vartext | cut -d" " -f9)
for word in $vars1
do
...
1,950
Posted By jafa401
>> append formatting
var=$(find /etc/*)
tput smso
ls -l | echo $var >> log


i am losing at the formatting when i append it to the log
is another way of doing it
14
7,198
Posted By jafa401
i understand i was looking at the man pages i...
i understand i was looking at the man pages
i been working with is
find ./datdir -size +30k ! -perm 200 -ls
and trying to figure what i could add on so it can look in the subdirectories and files...
14
7,198
Posted By jafa401
^ i am not really sure what you try to say there
^ i am not really sure what you try to say there
14
7,198
Posted By jafa401
how do i get it to look through directory, and...
how do i get it to look through directory, and all contained subdirectories, for names of files that are larger than the specified size
14
7,198
Posted By jafa401
its only the permission i want opposite so...
its only the permission i want opposite so wouldn't that be
find ./datdir -size +30k \( ! -perm 200 \) -ls
i am not sure
14
7,198
Posted By jafa401
i am trying some operators but its not working
i am trying some operators but its not working
14
7,198
Posted By jafa401
Thanks alot find ./datdir -size +30k...
Thanks alot


find ./datdir -size +30k -perm /200 -ls

Is There a way i can where i can reverse this statement
an look for opposite permission with doing so many find statements?
14
7,198
Posted By jafa401
Find
I am trying to figure out out how to use my find command results so it would be displayed in a ls-l form

basically how do i get (this is example)
find /etc -size +10k
to display in a ls-l...
1,486
Posted By jafa401
simplfy
ls /etc/init.d/rc4.d/ | while read FILE
do
tput smso
echo -n `expr "$FILE" : '\(S.*$\)'`
tput rmso
echo `expr "$FILE" : '\(K.*$\)'`
done...
1,607
Posted By jafa401
thanks everyone i got it working :b:
thanks everyone
i got it working :b:
1,607
Posted By jafa401
variable help
NUMBERx=cat datax | wc -l
NUMBERy=cat datay | wc -l



echo -n "No of files: " ; echo "$NUMBERx"

echo -n "No of files:" ;echo "$NUMBERy"

I am teaching my self bash scripting
and i am...
Showing results 1 to 21 of 21

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