10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm a complete beginner in UNIX (and not a computer science student either), just undergoing a tutoring course. Trying to replicate the instructions on my own I directed output of the ls listing command (lists all files of my home directory ) to My_dir.tsv file (see the screenshot) to make use of... (9 Replies)
Discussion started by: scrutinizerix
2. UNIX for Dummies Questions & Answers
I am trying to print the dates that falls between 2 date variables into a file. Here is the example.
Output to file abc.txt should be : 20120613,20120614,120120615,20120616
Can you pls help me accomplish this in LINUX.
Thanks... (5 Replies)
Discussion started by: dsfreddie
3. Shell Programming and Scripting
I have below requirement.
There are set of files to be monitored for audit purpose.
Source file contains the file name and its location on server.
Need to have shell script which generate a output file which is having the details of above files ( last modified user name ,lat update... (12 Replies)
Discussion started by: karnatis
4. Shell Programming and Scripting
Can anyone what I am doing wrong while using cut command.
for f in *.log
Log "Log file Name: $logfilename"
logfile1=`basename $logfilename .log`
Log "file length $flength"
from_length=$(($flength - 15))
Log "from... (2 Replies)
Discussion started by: dgmm
5. Shell Programming and Scripting
Is it possible to compare the modified dates of all the files in two directories using shell script?
I would like to take a backup of a directory in production server regularly.
Instead of copying all the files in the directory, is it possible to list only the files that are... (2 Replies)
Discussion started by: ashok.k
6. Shell Programming and Scripting
I have a file which have set of rows and has to create separate files based on the id.
Output: I want three files like 001_A.txt, 002_A.txt and 003_A.txt.
001_A.txt should have
... (4 Replies)
Discussion started by: techmoris
7. Shell Programming and Scripting
I am using the following script to find and replace the date format in a file. The field18 in the file has the following format: "01/26/2010 11:55:14 GMT+04:00" which I want to convert into the following format "20100126115514" for this purpose I am using the following lines of codes:... (5 Replies)
Discussion started by: bilalghazi
8. UNIX for Dummies Questions & Answers
Made changes to a file using vi editor and saved those changes
now realised that the changes are not required
How can I get the previous version of the file.i.e the one which was there on which I had made changes (3 Replies)
Discussion started by: novice100
9. UNIX for Dummies Questions & Answers
Can you please tell me how I can list all EXE files in a dir and Subdir which where modified say before 01/01/2006 (2 Replies)
Discussion started by: fremont
10. Shell Programming and Scripting
Can someone please give me an example of how I'd do a comparison to find out if the last modified date of a file is newer than yesterday (i.e. today - 1 day)?
if ; then
echo "Do something..."
Any ideas or examples?
Thanks. (1 Reply)
Discussion started by: dmilks