Summary: I need to run the following command in a script, but I need to replace the 603528 with an input file. bpmedialist -ev 603528|grep 'Server Host'|awk '{...
Summary: sometimes, things can be done very simply. Just read the file line by line, print out the necessary things you want. No need to use sed and waste tim...
Summary: Hi All, I am quite new at unix script. I have two questions to ask for your help. 1) I will do quite a lot of experiments. The output file names of di...
Summary: Hi all! I am trying to come up with a script which will find all files created within a day and then chmod them to set the execute bit. Anyone got an...
Summary: I need to sort an input file that the user can specify. 1: Ask the user for the name of the file 2: Verify that the file exists and is readable 3: is...
Summary: I forgot to say i need to print from the command line ONLY. The above reply didnt work at all, unix lpr or lp does not understand rtf files either and...
Summary: Hi All, Basically,I intend to purge files older than say 7days and archive some useful files.The point is,I intend to create two separate files contai...
Summary: I need to read a specific part of an input file and assign the data as variables until it reaches the "END". So, for captain coke, I need rum, 2, cok...
Summary: Hi, say a file called "original" contains the following entries: qwerty A space 12345 secret rm-rf* /hello337 byehdi(#note:there's a space) and i wan...
Summary: Hi, I am basically making use of Anukta's code only but with a few changes, in way that i am avoiding the read of the file using cat command, rather...
Summary: I need a script to filter out records (50,000 plus) from two arrays using a field column and outputs to a new file. Example. File 1: AAAA xxxxx BBBB x...
Summary: Hi, I have a text file with the data in rows the data file has specfic pattern of rows I need to convert first 3 lines of rows into columns by doing a...
Summary: Hello! I am currently learning unix for the first time. I have my own small business, and I'm setting up two servers. The first is MS based because ...
Summary: Hi all, I am a real beginner to shell scripting and would REALLY appreciate if anyone out there can give some suggestions on how I can solve the follo...
Summary: Hi , I wish to know how to combine two files to one file using unix command. I had two files aaa and bbb aaa files: 02 02 02 02 02 02 and bbb files :...
Summary: Hello, 1) I have a file with the names of the files inside. 2) I need to make the rm command to use that file as an input of files to delete. Here ...
Summary: Well theres no need to retype the file names.. when you use the Wildcards as mentioned . It will copy all the files in the same format.. please let me...
Summary: I have a file that I need to clean up. I need everything between the dashes put into one line. What is the best way to go about this? I already kno...
Summary: Hi. I would like to be able to update only one line in a file that matches a key using sed, but I can't seem to get this (the key is right at the begi...
Summary: awk will work on all lines of a file by default, or you can use a regular expression and have it only act on matching (or non-matching) lines. e.g: $ ...
Summary: I need help writing a search unix script. I have a .txt file with a long list of files. I would like to know is there a way to write a script that wi...
Summary: I need to compare two files and get the difference between the two files. F1 is the base file.I need to print out all the lines missing in F2, and the...
Summary: Hi Folks, I am working on Oracle APPS and new to shell script. I need to write a shell script to find the oldest file (based on naming convention dat...
Summary: I have basic working knowledge of UNIX. I work in an environment where I need to login to multiple servers to work. I need to write a script file whic...