Search Results

Search: Posts Made By: oxoxo
2,393
Posted By oxoxo
string="anything.txt" doesnt work because...
string="anything.txt"

doesnt work because its of a text file extension..why?

i need to use that with an if
2,393
Posted By oxoxo
Strict Argument
Im trying to write a bash script that has an if statment that when the user enters ONLY that exact argument, will echo what follows that conditon.

For example:

for file in $1
do

if [ $ ==...
3,898
Posted By oxoxo
cat Hello.txt | egrep "That One Pattern" | awk...
cat Hello.txt | egrep "That One Pattern" | awk '{print $NF}'


I have a value in that code. But i cant add it to anything. Awk has its own language so i cant change the NF variable to preform any...
3,898
Posted By oxoxo
Redirect to a Variable? Or is it cmd cap?
Hi,

Im reading an ANSI text file and greping for a pattern. Then i cut what i dont need from that pattern. So now i just have what i need. What i have now just so happens to be a constant...
2,094
Posted By oxoxo
Strange problem.
Well, my script started off to do what i wanted. Now, i think its not recognizing the pattern so its not moving anything.

What i have to do is execute my script command for the move to take...
1,778
Posted By oxoxo
Moving msgs in pine
hey im writing a script like this:




#!/bin/bash
#Name: moveMail
#Purpose: To move some files in the pine inbox to a folder on the desktop

#Step one: Find all messages with that have...
2,692
Posted By oxoxo
could anyone help me with this?
could anyone help me with this?
2,692
Posted By oxoxo
it gets completed for people still touching on...
it gets completed for people still touching on the basics:

What im trying to do is to find all messeges in my pine inbox and dump them in a folder called 'friendsfolder' that match the pattern...
2,692
Posted By oxoxo
grep or sed patterns
i want to match a pattern


* ^Subject:.*<\hello\>


for my emails to me that has 'hello' anywhere in the subject.
2,292
Posted By oxoxo
how to find pine messages
still touching on the basics here:

first of all where are my received messages stored in pine?

/var/spool/mymail

is not it.

i guess i cant start my script without knowing this....
1,638
Posted By oxoxo
yep thanks ! :)
yep thanks ! :)
1,638
Posted By oxoxo
Running cmds from a file
I specified in my file that all cmds are bash:

------------
#!/bin/bash

ls -l
------------

thats the file
how would i run that one command?
1,972
Posted By oxoxo
cat ~/myfile.txt does work so i need the...
cat ~/myfile.txt

does work so i need the command 'insted of cat' that will execute this file

givin that the file is exectuable.
1,972
Posted By oxoxo
Build and display a file
What is the command to build and display a file in one step?
-----------
cat myfile
-----------

i need something better then cat.
1,871
Posted By oxoxo
yeah.. breaks are good. du / -b...
yeah.. breaks are good.


du / -b 2>/dev/null | egrep ... | head -20
1,871
Posted By oxoxo
Redirect from the Root?
Hello again,

What im trying to do is to redirect output from a cmd, from the root, to a file. But i guess thats illegal.

I just wanted to know the file size of all files in my system. So:
...
6,785
Posted By oxoxo
--------------------------------------------------...
----------------------------------------------------------------------------------
find / -type f -name '.bashrc' -print -exec grep PS1 '{}' \; 2>/dev/null | xargs grep -l...
6,785
Posted By oxoxo
Ok guys the output is almost there! My...
Ok guys the output is almost there!

My Code:
-----------------------------------------------------------------------
find / -type f -name '.bashrc' -print -exec grep PS1 '{}' \; 2>/dev/null |...
6,785
Posted By oxoxo
How do i display the protection of all these...
How do i display the protection of all these files? thats where im stuck.
6,785
Posted By oxoxo
Ok a better question: ...
Ok a better question:

--------------------------------------------
find / -name ".*bashrc" -exec grep PS1 '{}' \;
--------------------------------------------

That code tells bash to find all...
6,785
Posted By oxoxo
That just prints the .bashrc file for SuSE Linux ...
That just prints the .bashrc file for SuSE Linux

My code prints all the .bashrc files on the system and i transformed it to look like 'ls -l'

so that it would display the protections, but now i...
6,785
Posted By oxoxo
.bashrc revisisted
hey guys,

i've tried countless times to do this and have come up with:

find / type -f ".bashrc" -exec grep PS1 '{}' \; 2>/dev/null | ls -l

which tells bash:

find all the files in the...
5,881
Posted By oxoxo
i have no way of knowing if what i've found...
i have no way of knowing if what i've found modifies the PS1 variable.

ls -lha .bashrc

give me: -rw-r--r-- <user> size and date .bashrc

i dont think thats all the .bashrc files in the...
5,881
Posted By oxoxo
what i've done is: find / -name .bashrc ...
what i've done is: find / -name .bashrc

which lists all the files on the system that have a name ".bashrc"

when i redirect that output to a file i only get the the .bashrc files that are in...
5,881
Posted By oxoxo
.bashrc files that modify the PS1 varaible. or...
.bashrc files that modify the PS1 varaible.
or
the .bashrc files that run on login that give me my prompt

right?

im having a hard time finding what to read ( besides man ) that can help...
Showing results 1 to 25 of 38

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