Search Results

Search: Posts Made By: austing5
1,013
Posted By austing5
Printing the contents of a file in a script with added chars
I have the contents of file1

1 2 3
4 5 6
7 8 9

i'm trying to figure out how to add chars to them
so it would display as this, if it's possible

1 . 2 . 3 \
4 . 5 . 6 \
7 . 8 . 9 \


...
3,167
Posted By austing5
woot swoop that worked i was just trying file >>...
woot swoop that worked i was just trying file >> file to see if it would over right but didn't work, shooting it to a temp worked perfect!!! thank you so much!
3,167
Posted By austing5
yeah it displays it but my file still contains...
yeah it displays it but my file still contains all three lines for some reason
3,167
Posted By austing5
this worked half way i think when i ran my script...
this worked half way i think when i ran my script it displayed this on my screen

1 2 3
7 8 9


but my file still contains all three
3,167
Posted By austing5
tried this; the file still contains all three...
tried this; the file still contains all three lines any other ideas?
3,167
Posted By austing5
hey thanks for the reply, but another question. ...
hey thanks for the reply, but another question.

What if it changes? im trying to use the 3rd argument to be the line i want to delete like this

awk "$3" num.txt

this wont work lol but this...
3,167
Posted By austing5
Using awk to delete a certain line
Ok I have a file that contains


#num.txt
1 2 3
4 5 6
7 8 9

my script main.sh checks to see if the first two arguments exist in a seperate file and the third argument would be the value in...
1,419
Posted By austing5
lol awesome thank you so much!
lol awesome thank you so much!
1,419
Posted By austing5
redirecting arguments in a script to multiple lines in a .txt file
Ok hope my vocab is right here, i'm trying to write multiple sets of arguments to another file for example:

I have a script that accepts four arguments and sends them to a another file
...
1,603
Posted By austing5
The way they teach us has always been /bin/sh i...
The way they teach us has always been /bin/sh i was just seeing what was the difference i'm guessing different shells use different command like "set" and "let" . Thanks!

---------- Post updated...
1,769
Posted By austing5
ah leave the question up!
ah leave the question up!
1,603
Posted By austing5
beginner scripting questions User variables
If there's anywhere to look this up, it would be just as helpful. I googled and really couldn't find anything relative to this.

ok... General Variables

1) When creating a script I made a file...
1,274
Posted By austing5
ok I see why now then. Thanks!^
ok I see why now then. Thanks!^
1,274
Posted By austing5
i forgot to keep them together like so chmod...
i forgot to keep them together like so
chmod u=rwx,g=rx,o=r file3
chmod u+rwx,g=rx,o=r file3

I just don't understand the difference between the two, when i use both. they "appear" to do the same...
1,274
Posted By austing5
permissions ?
chmod 754 file3 would yield the same as:


chmod u=rwx, g=rx, o=r file3


chmod u+rwx, g=rx, o=r file3


the first one is what i put the second is what was correct.
i guess i'm asking what...
1,688
Posted By austing5
Permissions question
1. The problem statement, all variables and given/known data:
Don't understand this problem: The question is the unix command chmod 754 file3 would yield the same permissions as:
I put: chmod...
3,648
Posted By austing5
haha yes!! thank you. that clarify's it, very...
haha yes!! thank you. that clarify's it, very much appreciated!
3,648
Posted By austing5
can root as in ../home/unix/jones, root is the...
can root as in ../home/unix/jones, root is the parent of all them or is it just the one in front, like a train? thanks for the reply
3,648
Posted By austing5
parent directories
can anyone explain parent directories in detail.
for example /home/unix/jones i'm not understanding what exactly the parent directory is.

Thanks!
10,589
Posted By austing5
no clue about wild cards
no clue about wild cards
10,589
Posted By austing5
display certain files ending
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!

1. The problem statement, all variables and given/known data:

how to...
Showing results 1 to 21 of 21

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