10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi again, have a script that I would like run, but before I can run it I need to strip out the windows \r end of lines.
I have put the command into a text file and set the command to run every 10 seconds the coomand I use to do this is
while sleep 10; do... (15 Replies)
Discussion started by: Paul Walker
15 Replies
2. Shell Programming and Scripting
Hi!
I actually got it running, but I still would like to understand, why and how, since I am a beginner in bash scripting. I Need floating numbers and thus use bc in my bash script. Here it is:
#!/bin/bash
num1="10^-15" | bc -l #power function piped to bc - DOES NOT WORK
echo $num1... (4 Replies)
Discussion started by: McHale
4 Replies
3. Shell Programming and Scripting
Hello,
I am trying to run some code on Matlab over ssh . The code takes around 5-6 hours to complete. so after giving the command to run it , I locked my machine and then went off to sleep at night, only to discover in the morning that I get this message :
...Code running, partial results... (1 Reply)
Discussion started by: ajayram
1 Replies
4. Shell Programming and Scripting
I am trying to extract the file names alone, for example "TVLI_STATS_NRT_XLSTWS03_20120215_132629.csv", from below output
which was given by the grep.
sam:/data/log: grep "C10_Subscribe.000|subscribe|newfile|" PDEWG511_TVLI_JOB_STATS.ksh.201202*
Output:
... (6 Replies)
Discussion started by: siteregsam
6 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to write a script that checks gvfs to see if a mount exists so I can run it from network-manager's status hooks. I thought I'd pipe the output of gvfs-mount -l to grep for the particular mounts I care about. When I do this in a bash script:
cmnd="gvfs-mount -l | grep -i... (4 Replies)
Discussion started by: kcstrom
4 Replies
6. Shell Programming and Scripting
Hi, I am running a script which produces a number of intermediate output files for each time step. is there a way to remove these intermediate files and just retain the final output at every end of the loop, like sort of an initialization process? this the inefficient way i do it.
for i in... (3 Replies)
Discussion started by: ida1215
3 Replies
7. Shell Programming and Scripting
Hi all,
Actually 2 files are there - file1, file2.
file1 contains --->
london
mosco
america
russia
mosco
file2 contains -->
europe
india
japan
mosco
england
london
Question is I want to print all the city names without duplication cities in those... (10 Replies)
Discussion started by: balan_mca
10 Replies
8. UNIX for Dummies Questions & Answers
I am confused over piping. :confused:
A | B
Will A and B run at the same time? or must A finish running before B starts to run?
Suppose I want to do the following:
sqlplus ... | split -1000 - filename_
sqlplus will return 1million rows, I want write the output into files of 1000... (4 Replies)
Discussion started by: Leion
4 Replies
9. Shell Programming and Scripting
hi all,
i want to write a shell script which can automatically touch my all files within a folder in an interval of 90 days ...so that i can avoid them being archived.
I don't want to manually touch the all files instead i want an automated shell script to do this.
Thanks in advance,
Om (3 Replies)
Discussion started by: koti
3 Replies
10. Shell Programming and Scripting
Hi,
I just stuckup in doing some regular expressions on a file.
I have data which has multiple FHS and BTS segments like:
FHS|12121|LOCAL|2323
MSH|10101|POTAMAS|2323
PID|121221|THOMAS|DAVID|23432
OBX|2342|H1211|3232
BTS|0000|MERSTO|LIABLE
FHS|12121|LOCAL|2323
MSH|10101|POTAMAS|2323... (3 Replies)
Discussion started by: naren_0101bits
3 Replies