Showcase your knowledge about Apple's newest OS. Write a how-to or share a tip or trick about Snow Leopard and earn unlimited points!

 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Top Unix Systems Programming Solutions: 51 - 67 of 67
 
I have an ascii file with the following data: Header 1test 2test 3other 4other 5test Footer I need a script to remove lines that start with a number and don't contain text 'other' O...
I am ftp the file to a remote server. I need to check if the file was ftped rite in a shell script ftp -vin $FT_SERVER <<EOF $EMTRY_LOGIN cd test put "test1.csv" ls quit EOF Please a...
How can I display the 5 most recent  *.txt files from the most recent time to the oldest time?
I have a very simple construction <node name="first.txt" exist=1>       <node name="subfirst.txt" exist=1/> </node> the XMLNotepad complains the numeric one '1'. look like I need some ...
Can someone pls tell me how to send mail to multiple recepients in UNIX using mailx command ?
when I execute the 'who' command directly on the terminal say who>sample it gives me the date in the form 2009-10-21 in file 'sample' but in a php script when I write shell_exec('who>sam...
find ./ -name "access*.log" -type f  | xargs awk ' /name=.*&vrsnId=/ { print $0 }' | sed  's/.*\(name=.*&vrsnId=[0-9]*&\).*/\1/;s/name=//;s/&vrsnId=/|/;s/\(&$\)//;' > ${TargetDir}output.txt ...
I have this file <REPLY ID=214990537:2:164.000000:164.000000 </REPLY> <REPLY ID=214549144:1:7.740000:7.740000 </REPLY> <REPLY ID=214098938:2:2.300000:2.300000 </REPLY> I need to pa...
I'm looking to write a script and although I'm relatively new to the practice, here's my problem. I have a file with a number of lines to execute a command against. The command can only be run...
I need a way in a sh script using nawk or awk to find the line below that has /a01 in it (the first part of line might vary) and then move over to the - at the end of the line and replace the ...
I am generating a file using isql in shell script in which fields are  commma separated something like isql -Uuser -Ppasswd -SServer -s"," <<EOF >out.log select... EOF when the file ...
Hi, I am having a problem with awk.  The first line below is the code where '$filename' and '$FT' are defined as variables within the script.  Everything worked up to the point of adding the '...
For example I have a directory tree structure and number of file in each directory dirA  900      dirB  90           dirC 9               dirD 9000                  dirE  90000 What I li...
For example I have a directory tree structure and number of file in each directory dirA  900      dirB  90           dirC 9 What I like to see is tht subtotal all the files for each direct...
let say I try to execute with its full path like sh /fullpath/subpath/myscript.sh I like to be able to call another script within myscript.sh that also have the same path of /fullpath/subp...
I have a script which goes like this : *********************************************************************************** #!/bin/ksh filename="file1"$(date +"%Y%m%d") ./script1 $filename ...
Hi Guys, How do I write the script for the following telnet 192.168.1.100 9002 if the result is less than 1 second. The script should say as port open if the result takes more than...