10 More Discussions You Might Find Interesting
1. Red Hat
I'm working on an rsync script and I'd like it to omit the MOTD banners and NOT output them to the file. I tried the --no-motd argument in the command but for some reason the MOTD still continues to appear. Can anyone advise? (10 Replies)
Discussion started by: infrared013
10 Replies
2. Shell Programming and Scripting
i made a script on my own. this is for the inventory to all of my AWS servers, and i run it to all of my servers to get the hostname, please look at file2. Then i need some data in file3 as well,. i need to combine them
#cat file1
192.10.1.41
server.age.com
######
192.10.0.40
ssh cant... (10 Replies)
Discussion started by: kenshinhimura
10 Replies
3. Shell Programming and Scripting
Hi Everyone,
I'm invoking the following command by a script:
at now < /home/d01plmi1/rep/start_replication.sh > /dev/null/ 2>&1
but everytime is runs it put a message into the mail box of the userid executing the command. How can I redirect this so I can stop these notifications... (4 Replies)
Discussion started by: arizah
4 Replies
4. Shell Programming and Scripting
I have a file, f1 with content:
File f1:
abc_English_Dlr
def_123_English_Dlr
qwe_98_yu_English_Dlr
dsw_1_English_Dlr
I want to remove "_English_Dlr" from it.
I used cut command but the problem is there may be a case for getting 1 or more fields before _English_Dlr . So Cut... (8 Replies)
Discussion started by: karumudi7
8 Replies
5. Shell Programming and Scripting
I have a file called file.txt with multiple lines in them. I'm trying to remove the first 2 characters and the last 2 with awk.
'.batman')
'.superman')
'.dragonheart')
.'superduper')
I tried doing the following and able to get rid of the first two characters. How do I remove the trailing... (5 Replies)
Discussion started by: zerofire123
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I know this is a really dumb question, and I used to know how to do this, but I forgot and I can't seem to find the command online anywhere:
When I grep a string, how do I filter the results so that lines containing a certain string are OMITTED!
for example:
grep 'string' *.txt ... (2 Replies)
Discussion started by: juliette salexa
2 Replies
7. Shell Programming and Scripting
Hello All,
I am writting file comparison Utility and I have encountered such a senario where there are 2 files such as follows-
1#!/usr/local/bin/python
2 import gsd.scripts.admin.control.gsdPageEscalate
3.gsd.scripts.admin.control.gsdPageEscalate.main()
1 #!/usr/local/bin/python... (10 Replies)
Discussion started by: Veenak15
10 Replies
8. Shell Programming and Scripting
I am using the fallowing script. this script seems to work fine except the file has data I do not wish to have. Is there away to omit that data. I will first provide the scrip and then a sample of the data the way it looks and then a sample of how I would like the data to look. Thanks for any... (3 Replies)
Discussion started by: krisarmstrong
3 Replies
9. Shell Programming and Scripting
Hi All I am writting a script that does a comparison between files in 2 diffectent directories.
To do this I need a command that will list out only the files in a give directory and omit any sub dorectories with that directory. But I am unable to find it.
Please Help.
I tried
ls... (5 Replies)
Discussion started by: Veenak15
5 Replies
10. UNIX for Dummies Questions & Answers
Can someone help me with the following 2 objectives?
1) The following command is just an example. It gets a list of all print jobs. From there I am trying to extract the printer name. It works with the following command:
lpstat -W "completed" -o | awk -F- '{ print $1}'
Problem is, I want... (6 Replies)
Discussion started by: TheCrunge
6 Replies