Visit Experts Exchange from your mobile device to search, ask, and monitor your questions. Never lose touch again.

Preview From Your Desktop
 

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

 
Time Tested Unix Systems Programming Solutions: 26 - 50 of 762
 
I have a text file filled with a list of SKUs for which there will be matching images in a directory and its subdirectories.  I need a command or shell script that will read each line of the t...
I am trying to read some large log files in ksh on solaris. When opening in vi, I get Line Too Long and cannot browse the file I try grepping for a string (a user id) and sending it to anoth...
I want to use exported variables from one script in another. Just as an example, there is more to it than this, but these variable are declared in one script. Does export only make them avai...
XML file is in continuation, which means tags are not seperated line by lines. I want to write a shell script which would be able to get a number within a particular tag. E.g. OrderMgr.s...
Hello UNIX Xperts: This is a simple question for many of you - How can I modify a script to print a comma seperated list of integers, starting with the entered value as an argument to the s...
Hi all,     by doing this: script.sh 2>>output.txt I am able to run the script and send the errors if any to output.txt but how can I send both the output and errors to output.txt by ru...
I have a variable named FILENAME1  whose value is yyyymmdd.csv I want to extract the first 8 characters from the variable and then concatenate _m.csv to it I'm new to unix shell scripting, b...
How do you select all in vi?
Hi, I am new in here as well as new to the computer industry.  Here is my little problem. I need to write a script in Korn Shell that searches for a string in a file and then replaces that st...
Hello, I need to extract a substring from another string using tcl. I have tried using regexp without success. Here is an example of what I need to do: string1 = "22/OBGJ/123456_5.66:...
Hi, Could anyone give me some examples about how to use regcom, and regexec? Thanks in advance.
Hi, I want to test that a file (say $FILE) exists and has more than 0 lines.  How will I do that in a single if statement ?  Can I do the following: if test -a ${FILE} && `wc -l ${FILE...
Hi, I have a variable STRING, that contains a list of any characters that you might find on your keyboard. I want to edit the string so that any character that is "not" in the set [A-Z] ...
Hi experts, The following printf command converts a char to a hex value: $ printf "%x" a 61 How can I conver this 61 back to "a" by using printf or any shell command? Thanks
Hi... I have a whole bunch of xml files that i want to make a change in..... I want to replace the FIRST occurance of the word Update with the word Insert. I have about 20,000 files, and I w...
I want to check 410 source text files for any references to 1639 known database columns. egrep can search a file listing for occurences of multiple strings but with such a large number can thi...
Anybody know how to convert a hex to a decimal number? I'm in BASH shell. eg: a_hex_number="3e101010"     to 1041240080 (in decimal) I need the decimal value for ctime function. Thx.
Hi Experts, I want to decode the base64 portion of an email back into the binary attachment that it represents, on Solaris 9.  There is one attachment per email.  I don't have mutt or pine ...
Hi All, I want to execute a binary and trap the stdout and stderr . I don't have the code for the binary. I have got the solution for this on the same list which is working fine. Many Thank...
I am using ksh to write a shell script. How can I check whether the variable is set to a null value or not? Thanks!
dear experts , I do have batch script that use  "mget" as part of the script to get files by the psftp procedure , when I use this command it is showing me as an invalid command like. t...
I want to redirect stdout and stderr of a shell UNIX script to 2 different files and also the stdout and stderr-messages must appear on the console. How should I do this? stdout -> file.out ...
Is there a command to gzip an entire Unix directory. When I try giving gzip * inside the directory it gives an error saying "arg list too long." Also is there a single command which will li...
Hi, I am trying to use the mail sytax in my script, but it just hangs...It does not do anything... My requirement is just to send an email to my client indicating the job status..... C...
hi, i need a fast function to calculate the checksum of a file. (similiar to the cksum shell command) thanx, ittay