Summary: Hi All, I have a requirement something like this..there are set of files with name sample_plant_date..I need to sort in acesnding order based on pla...
Summary: In the previous reply, where did that $1 come from? It would be the last parameter to that shell, and if non-null, it would certainly not be welcome ...
Summary: I have some broblem about merging two files. this is my perl code which is not completed. $filename = "delete.txt"; unless ( -e $filename ) { print ...
Summary: I have a bit of script that i am having trouble with. In the filename there is a space after the first three letters then the rest of the filename fo...
Summary: A better way to delete last line would be: sed '$d' $filename > offertest.txt And to delete first and last line: sed '1d;$d' $filename > offertest.txt...
Summary: I'm using the following command: find . -type f Which outputs a listing of files in the directory structure. How can I get the output to be sorted in ...
Summary: Have a cron job running that creates a folder using -date +"%a" in /home dir and runs daily. Need a script that will go through /home and look for fol...
Summary: Hi there I have a file which I wish to sort the rows in and then remove lines that are a subset of other lines. For example, in the text file conta...
Summary: Do you need to delete the lines that include the patterns or just the lines inbetween? This perl command will do an inline edit of your file and dele...
Summary: Is there any way using the korn shell to delete all records in a file except one?? In other words if I had 6 lines in a file, could I issue one comma...
Summary: hi all, i have face new prolem in writing my bash script. my problem is that i want to write a script that will accept any number of arguments and ret...
Summary: Hello all, I've got a rather large txt here at work that we received from another company that I'm trying to get into a database. The file shows that ...
Summary: Sorry, I just checked in. Read carefully: I do not have a ample and sure solution to this, but: -install the skins and codecs separatelly. see /usr/po...
Summary: Hi, I need to find files which matches a pattern (e.g. cache-*.dat) and delete them from all sub-directories recursively. Please help. Thanks. ...
Summary: A challenging question, Mario. Maybe a unix administrator knows an easy way. I just wrote the following script, works fine on HP-UX. who /var/adm/wt...
Summary: Hi Can you please tell me the command for finding out on a unix box List of all filenames, file sizes and cksum values for all files and sub folders ...
Summary: i need some help with the sort command. i want to make a one line command using redirection and pipes.i want to sort a file: file1 and file2 into file...
Summary: i have a directory "ABC" with lots of old files and sub directories in it. the issue now is i want to delete away files which are older than 15 days i...
Summary: File transfers are relatively simple in PHP if you follow php.net, but you have to learn php first, so here's a few things to get you started: First, ...
Summary: Thanks! Now it works... but unfortunately it appears that just first field it's actually used for sorting. The command line is: sort -n -k 1.44,1.48 -...
Summary: Try this: ls -1|sed 's/[A-Za-z]*/& /'|sort -k1,1 -k2n | sed 's/ //' I listed the directory, added a space after the first set of letters, sorted the f...
Summary: I see no clear method of doing this. My idea is to place each 2-line record into a file, compare the files and delete the duplicates. Here is a 3 ste...
Summary: I have encountered a worst case scenario with on my Linux box. A Win95 program destroyed my partition table (and the rest of the master boot record)....
Summary: Here is that logic using a case statement: #!/bin/sh case $# in 1) filename=$1;; 0) echo "Please enter filename: \c" read filename morestuff ...