Summary: Situation: I have a directory called ABC which contains multiple CSV files. In each CSV files there are multiple records for e.g. a coat hanger, a pla...
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: Hi there, Need help here. In Unix,is there a way to coutn the total number of lines for all the files in a given directory? I know there is a comand ...
Summary: I want to write a csh script to search files "Scan_ddmmyy.csv" placed in a directory. The program should look for EXCLUSIVE flags in the 6th, 7th & 8t...
Summary: Please help... I need to delete files in all sub-directories that are more than 10 days old or delete all sub-directoires (entire directory) that's 10...
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: I don't think you can generate an xls file from unix. You spool a flat file and the file name should have .csv (comma delimited). Also, each columns ...
Summary: How do I rename all the files in a particular directory with the file extension .UNC for uncompressed. They are compressed and have a .Z extension bu...
Summary: Hi everyone, I am trying to remove some lines from all the files in a directory, for example I am looking at the fields 25-27 and if it is 19 I am tr...
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: hi.. im trying "tail *" to show all the tail entries of all the files in a directory, but it doesn't work. I have tried "ls | xargs tail" and "tail `l...
Summary: Aki: To answer your first question: It's not accurate to say it "compares each file with the next file". It compares a file, call it filea, with the ...
Summary: For every 15 min, I would just put it in cron (no sleep loop). Before putting in cron, do your testing by running it manually (a single execution ea...
Summary: Hello I need to write a simple batch script to delete all the files in a particular directory which are older than 24 hours. Sound simple, but to a n...
Summary: Does anyone know if there is any way to create a file link in a common directory that points to a file in a users home directory. e.g.: /export/home/u...
Summary: Jim, Think my question is not clear, let me put it in other way.. In /home/files I have 2 files GMS.txt and AMS.txt I've my script /home/scripts/c...
Summary: I have a question.. what if you have a file having numbers every line and you have to get the total of all the numbers in the file? How will you do th...
Summary: #!/bin/sh for file in `find . -exec grep -l IS314.1 {} \; ` ; do cat $file >> /u2/dbms/MHCDATA/DWNLD/IS312.1 # you may have more than one occurance. ...
Summary: I need a batch file that contains input data from a program that asks for this data using multiple prompts. So I guess I just need the initial line ...
Summary: Hi: As Wolfbone shows us, ksh won't solve this problem without some help. Perl has a stat command that returns file statistics similar to the "C" pro...
Summary: Thanks to all in advance I was wondering if anyone had a script that could be ran every few hours that would LIMIT the size of a directory. Here is th...
Summary: copy recursively a directory (only one kind of file) --- hi! I would like to copy recursively a directory and its contain... but only a certain type o...
Summary: Many implementations of vi set the dir value to /var/tmp. This is ok if /var/tmp is a large filesystem. However, many times it is not. To change it...