Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Top Shell Scripting Solutions: 26 - 45 of 45
 
I need to execute a command which returns an integer and compare that result to the result of another integer-returning command and get back 0 or 1 if the integers match or not. Here's what I ...
On a Unix server, I have a flat file that has multiple lines.  Many of the lines have spaces in them.  I'd like to be able to insert a double-quote before and after each line in the file.  How...
I have a BASH script that works but I need to skip over the .log files. Here is the script - how do I get the "for movie ..."  line to exclude all .log files in that directory? #!/bin/b...
Dear Experts, 1.I need a script which will search a directory for files which contains " in file name and remove this character(")from that filename. 2. IT will also log everything to a lo...
I have a table in a file (piped).  I wanted to count the occurrence of a particular word XXX.  How do I do that in shell?
I have a csv files which is produced dynamically based on first record I need to sort the data and make different csvfiles for example, in the file below,I need three different files with ...
Hello, I want to copy one file to multiple directories with CP in bash. I have a file name prospects.html.php and I want to copy this file to every web site on the server. The direct...
I would like to get a certification or similar covering UNIX scripting, including AWK.   It must be possible with a testcenter exam in the end (not just one of those online exams more for comp...
I have a file with three fields (piped delimited). I wanted to check if one of hte field, say 2-nd is a particular type, say integer. What would be the most efficient way using shell scrip...
hello, I want remane all files start by 'gex' but not start by 'gex_' and this in big list of folder. ex : rename 'gextoto' to 'gex_toto' but not rename 'gex_toto' to 'gex__toto' how can...
Please tell me what is wrong with this script. I want to define what is passed to +mtime and -mtime command line. So it would run like: script.sh 10 20 Then it would list anything older...
Dear Experts, 1.I need a script which will search a directory for files which contains " inside files (not in filenames) and remove this character(")from that file. 2. IT will also log e...
I'm parsing a HTML file witk awk, and I want my field separator to be any sequence of <> tags, leaving fields as the text outside of the tags. Currently I have FS = "[ \t]*<[^>]*>[ \t]*" ...
Hi All, I want to insert one line as a header to a csv file. I need to read the same from a different file. In other words I need to copy header from once .CSV file to the other..Thanks in ad...
hello, I have make one script shell, and i want this script shell are start with specific user. add "su deploy" in my script is not good because avec this line is executed the script stop im...
Hi, I am doing automated file transfer using sftp, but every time file transferr for big files is partiall but for the small files getting transferred fine, but for the big files once ...
I have my data like below in a fixed width file. I want to create multiple files where there is break in the group number i.e. the first column. In the below example I should be able to create...
I have an xml file that is generated by an interface between a Product Data Management (PDM) and an Enterprise Resource Planning (ERP) system. The current file as it goes across sometimes cont...
I am writing a shell script to convert a column in a file like column no 3 below : IN,AAAA,1.50 JP,BBBBI,1.25 US,CCCC,0.50 Into ---> ( all values in c column * 100 ): IN,AAAA,150 JP,...
my '/' is having 97% I found a log file in /var/log which is more than 1G in size.. how can I truncate it's size to 1MB, considering file contains 1000 lines and how to keep only last 100 li...