10 More Discussions You Might Find Interesting
i have created a for loop, it looks like this -
for tar in *
"$base" -tvf >> /mnt/local/data/logs/"$base".csv
but i get this error -
./tar_loop.sh: line 8:... (2 Replies)
Discussion started by: robertkwild
2. Shell Programming and Scripting
I have list of files present in a folder. I want to search for a particular keyword sequentially and create a file which will be later used by some other program.
a.dsx b.dsx c.dsx Dataline_.txt Dataline.txt loop.sh
$ cat *.dsx
for i in... (4 Replies)
Discussion started by: mac4rfree
3. OS X (Apple)
I'm using Mac 10.9.1. I would like to create an alias for grep so that it won't print out messages like "grep: /Users/davea/workspace/myproject/subdir/: Is a directory" all the time. So in my terminal, I opened ~/.profile and entered
alias grep='grep -s'
However, when I close and... (5 Replies)
Discussion started by: laredotornado
4. Shell Programming and Scripting
I have 2 files, that look like this:
ID SNP1 SNP2 SNP3 SNP4
A1 1 2 0 2
A2 2 0 1 1
A3 0 2 NA 1
A4 1 1 0 2
Basically, all of the SNP-values are 0,1, 2 or NA, and they each have a score, listed in the second file. The total... (5 Replies)
Discussion started by: kayakj
5. Shell Programming and Scripting
i have a file 'detail' which contains
but detail may be 4 line file.6 line file or 8 line file like
so i want a declare a loop which assign the value of first line in one... (11 Replies)
Discussion started by: rakeshtomar82
6. UNIX for Dummies Questions & Answers
Hello, i am new to unix and i had done very little assignment in unix. I need help on a homework assignment where i am require to create my own file call myshell. In the file it must have the commands that loop. Instead of displaying a regular command path like my computer name instead it is... (1 Reply)
Discussion started by: megaearth77
7. Shell Programming and Scripting
I have the following code and want to use a loop to output the results to the fparams file.
if ($optparams == 1) then
# Set the tdarwin parameters
set txt01 = "Call to raytrac.csh"
set txt02 = ""
set txt03 = "./Scripts/raytrac.csh $*"
set txt04 = ""
set txt05 =... (0 Replies)
Discussion started by: kristinu
8. Shell Programming and Scripting
I have 2 questions.
1) Is there a means of directing output to a file (">") while making it still output to the console?
I have a script that calls another lengthy script.
2) I can direct the output of the lengthy script and grep it for the words "good" or "bad" to know if I need the run... (2 Replies)
Discussion started by: mrwatkin
9. UNIX for Dummies Questions & Answers
I have the following simplified script, that consists of a download (wget), a grab of only the lines with a comma (grep) and a rename of the file to indicate its date of origin (mv):
grep ',' datafile.csv
mv datafile.csv datafile.`date... (2 Replies)
Discussion started by: figaro
10. Shell Programming and Scripting
I designed a script that can compare 2 columns(values) of single file and gives the closest numbers to the first column by comparing the numbers in first column with second and it works in a single file.
Now I'm trying to design a new script with 2 objectives for 2 files (not a single... (4 Replies)
Discussion started by: repinementer