Summary: i need to search for *.txt in the current directory(excluding sub-directories) and need to itirate through each *.txt i.e. my requirement is to pick e...
Summary: hie there, i would like to know how do i compare files in a current directory? i don't want to compare just 2 files with the diff filename1 fil...
Summary: Arne: If you don't have maxdepth, try this: # find all on one line find . -type f|awk ' gsub("^./","") '|egrep -v "/" provided you execute find in the...
Summary: hi, I am a student who just started learning unix. I was given with the following programs in my cirriculum. AS i am a new programmer is not able to s...
Summary: There are 2 ways $chmod +x $./ #if the file is in current dir . 2 $ sh You can refer to following link for more on shell programming http://www....
Summary: Regarding #4, you must first get out of insert mode with the escape key: Esc :wq or Esc ZZ #2: ls -ltur -t gives time sort instead of filena...
Summary: Can anyone convert this bash script to a csh script? Essentially what this script does is it takes an a directory as an arguement and appends that to...
Summary: Here I got some UNIX problem..Hope you can help.. 1)Write a UNIX command to concatenate the contents of all files in your present directory and to put...
Summary: since I have several files to run this through I notice that when I use For it crashes. DIRS = "at_1 be_1 ch_1" for j in $DIRS do gawk -F\| 'BEGIN { ...
Summary: Hi all, I have 2 flat files database: 1. Record A.txt Name|SerialNumber|PartNumber|Location|Addeddate|Expiredate hawkeye|123456|321-23-2345|H1|10/22/2...
Summary: I guess you are looking for some directories and files having certain permissions. Is the find command allowed ? If yes then use the find command as b...
Summary: I have a common shell script file need to be accessed from several files in other directories. Time is urgent, although I know there are two ways for...
Summary: so sorry for that. i actually need to have the xxid.txt file in the log dir join under two condition: 1) when the dir's file reaches 50 files 2) after...
Summary: Need help to grep for a string in each and every files in multiple folders just like the find command works find ./ -name abc.txt -print Any help woul...
Summary: ghostdog that's a neat trick. I'll take a shot at explaining it: awk 'FNR==NR{_[++d]=$0;next}{print _[FNR],$4,$5}' file1 file2 First, two definitions:...
Summary: If you want to pick up specific fields from each line returned, awk is often a good way to do it all in one shot, e.g: awk -F: '/Delon/{print $2, $1}'...
Summary: Hi, I'm trying to write one shell script which will get the first entry form an ascii file whose entries looks like : 121212 xxxxxx zzzzz The crite...
Summary: How do I search a string in a file and then replace it with another string. For example: I am looking for a string with the name date, and I want to r...
Summary: @echo off ------------------------- :: Description: Deletes files older than a specified number of days :: ++ attributes not set :: :: Author...
Summary: but I do have another question to this since I have several files to run this through I notice that when I use For it crashes. DIRS = "at_1 be_1 ch_1...
Summary: Hi, I am trying to write a unix script for a student database program. I have some pieces of script for this database that was left to me. ...
Summary: I read in lines from input text file (i.e. $0) where each line gets split into array (e.g. lines). For each 2nd column (i.e. lines[2]), I wish to use ...
Summary: Is it possible to do search and replace in unix Like : s/some date/current date/g some date and current date both are in same format (dd/mm/yyyy hh:mm...
Summary: In DOS, a batch file containing a 'cd' command results in the current directory being changed at the prompt. In Unix, the same changes the dir within ...