First  |  Prev |  Next  |  Last
Pages: 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
I have a question about bash period command
Hi, I have a question about bash period command. I have this script, b.sh , which should run another script: #!/bin/sh .. a.sh a.sh is a simple script, which echoes "in a.sh" on the terminal. more a.sh #!/bin/sh echo in a.sh when running b.sh I get an error: ../b.sh ../b.sh: line 2: .: a.sh: fi... 28 May 2010 11:32
Equivalent csh construct to "set -- $var"
In bash, "set -- $x" where x="a b" causes the effect of $1=a; $2=b Given the value of x, is there a csh construct that does the same? Victor. -- Victor Eijkhout -- eijkhout at tacc utexas edu ... 28 May 2010 23:36
aborting a bash script with control-c
I would like to be able to abort a bash script with control-c when I can see that something has gone awry. However, it often doesn't work, depending on exactly when you hit control-c, because the script has spawned other scripts, and control-c only apparently only aborts the one that happens to be currently executi... 10 Jun 2010 12:15
Replacing multi-line expression
Hi there, I am trying to replace a multi-line expression in a text file without much success so far. I am looking to replace "string1\nstring2" with "string3\nstring4". For this I tried: cat input.dump | sed -e '{ N s/^string1\nstring2$/string3\nstring4/ }' > output.dump But depending whether string1 is... 28 May 2010 13:45
compare 10th column from file1 to file2
awk ' NR==FNR && $10 ~ !/null/ { if ( length($10)==14 ) $10=substr($10,3); x[$10]=$10; next; } FNR!=NR { b=$2; if ( b in x) { print $0 } } ' file1 file2 > file3 file1's 10th column is baseline and I need to verify $0 from file1 in file2 and print matched line in file3 Thanks ... 29 May 2010 09:11
send all fonts on my computer to printer
I would like to make a book of what every font installed on my computer looks like. it is easier for me to select what I want to use in graphics programs this way than to scroll through a GUI. Is there a script already written that can do that and if so where? TIA Dave ... 27 May 2010 19:16
awk --->>> /usr/xpg4/bin/awk
On May 26, 7:12 am, kielhd <kie...(a)freenet.de> wrote: Hi NG, I am writing a script that is supposed to run on different UNIX- derivates. It runs OK on AIX, HP-UX and Linux. At the moment, I am implementing the SunOS part. At SunOS I came over a problem, where I need your help. The script cons... 26 May 2010 15:48
Shell script to open browser and get response back
Hi All, I need some help to develop a script which needs to open a browser with speicifed URL and get the response back. Right now I am using xdg-open 'http://www.google.com'. Here i am using xdg-open because of they need to open in my default set browser. Here I want to specify all the URLs in a text file. My scr... 11 Jun 2010 01:38
combining files line by line
Hello, I would like to add an arbitrary number of files together line by line. So if I have 3 csv files, each with 2 columns I would like to create 1 file with 6 columns. I have tried paste but paste has a limit on the length of the combined string. I cannot use join as I do not have any similar fields. Is there... 30 May 2010 19:46
disk space usage
If I do an ls -al 2006* in a directory how can I find the size of these files? I am having trouble combining the two using the du command ... 29 May 2010 11:22
First  |  Prev |  Next  |  Last
Pages: 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29