10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
OK, this really has me bolluxed.
I'm using Mac 10.6.8, and I'm trying to do simple analysis of my Apache logs in Unix. Let's call that text file "log".
Now I want to remove from that file all lines with incomplete GETs, so I do
grep -vf exclude log > out
where the file "exclude" has... (13 Replies)
Discussion started by: Doug Lassiter
2. Shell Programming and Scripting
Can i use mutual exclusion of particular args and force script to exit if both are specified?
while getopts l:d: OPTS; do
case $OPTS in
*) echo "$USAGE" && exit 2;;
# Here i want to exit if both -l and -d are specified
... (1 Reply)
Discussion started by: urello
3. Shell Programming and Scripting
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
Discussion started by: yart
4. Shell Programming and Scripting
In the script I am doing a mget for multiple files. How can I exclude just one file which I do not need to ftp ? (3 Replies)
Discussion started by: jville
5. Shell Programming and Scripting
I have a file with the contents below
I want to extract out all the fields values ending with "_t" , however, i want to exclude feb_t and mar_t from the results
In... (6 Replies)
Discussion started by: alienated
6. Shell Programming and Scripting
I am writing a backup script which uses a function to create a tar archive for a specified directory. For some reason though I cannot get tar to exclude a specified path when passed as a variable. The problem does not seem to be with the command though as it works when entered in the... (2 Replies)
Discussion started by: mij
7. Shell Programming and Scripting
Hello Can you please help and check what im missing on script below
the goal is to delete the old files more than 7 days old but not the excluded file list inside excluded.dat file
for xfile in '(read $EXCLUDE)'
$FIND... (9 Replies)
Discussion started by: angst_nu
8. UNIX for Dummies Questions & Answers
I have to copy a set of files abc* in /path/ to /path1/ as abc*_bkp.
The list of files appear as follows in /path/:
I have to copy them (abc* files only) into /path1/ as:
. (6 Replies)
Discussion started by: new_learner
9. UNIX for Dummies Questions & Answers
I'm looking for a bit of help. Im trying to search a file for lines that contain white spaces at the end of the lines. This is what I'm using where $param is the path and file name and it redirects the output to a txt file :
echo | grep -n ' $' $param >> $2
Is it possible to have... (8 Replies)
Discussion started by: gintreach
10. Shell Programming and Scripting
i trying to list all files within a directory. I want to exclude all subdirectory and some files, with using below statement, but it not exclude the files which start with "&" and end with "SL" , is there any things wrong with the below statement ?
cd /myaccount/mydirectory... (6 Replies)
Discussion started by: ayang