10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm working on a script to execute a number of items. One being, editing particular files to add certain lines. I'm attempting to utilize sed, but, having issues when running from a bash script. Assistance is greatly appreciated.
sed -i '14 i\
# add these lines
add these lines to... (5 Replies)
Discussion started by: Nvizn
2. Shell Programming and Scripting
I want to do an Unix Script to save the 'nmon' output on a text file and I don't know how to do it.
I need a Script for each monitoring and also one to multiple monitorings.
Thanks (6 Replies)
Discussion started by: Javi1990
3. Shell Programming and Scripting
In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script.
the code segment is:
cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
4. Shell Programming and Scripting
For some reason I was needed to ping some URL and save the output to a file through Expect script, following is a very basic of that script, but it fails everytime. When I just copied the same 'ping' line to normal Terminal and run, it runs fine. Please, help.
spawn ping -c 3... (1 Reply)
Discussion started by: santanu4ver
5. Shell Programming and Scripting
I have one command which can open page and i want to save and exit from it.
pf@home> mozilla 126.96.36.199/g/report.txt
It will open one page now how can i save it.
Thanks (1 Reply)
Discussion started by: pareshkp
6. Shell Programming and Scripting
I have blank file A.txt
I will run the script xyz.sh
First i want to open a.txt file...
Now i will enter some data like
Save it and keep continue my script....
END of my script.
Thanks (1 Reply)
Discussion started by: asavaliya
7. Shell Programming and Scripting
I'm using the following script to check cisco router health and I'd like to save output to a file,
vty_runcmd.sh > /check/check-cisco-health
script works and output is saved to a file. However using it in crontab file is created but output is not printed inside it. In crontab,
*/5 * * * *... (4 Replies)
Discussion started by: marmellata
8. Shell Programming and Scripting
when i finish running some scripts in unix...some csv file is getting generated...now im manually taking this csv file from this generated directory and using FTP, i'm importing to windows os and saving in a directory...
please give me a script to automate this..so that i can add in my... (1 Reply)
Discussion started by: dll_fpga
9. Shell Programming and Scripting
hi there !
i have exactly the same problem like this guy here
i am not able to save the curl verbose output..
the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
10. UNIX Desktop Questions & Answers
Trying to come up with a script that picks content from another file, and saved the new file with the original file name but adding the time when the script is run to the new file name.
after which it compresses this new file.
Thanks in advance (1 Reply)
Discussion started by: Targ