Summary: Hi all I concatenate files using cat. Each file contains only one csv data. for example, file1 100 file2 200 cat file1 file2 > newfile newfile 100 20...
Summary: Greeting. I need to concatenate all the files with similar File names. For Example, I have 5 files, 1_100 2_100 3_200 4_200 5_300 Now I need to have 3...
Summary: I'm interpreting that you want to find all the files with two spaces in the name and rename them to one? There's no need to escape the spaces, and you...
Summary: T.T. I'm assuming you want to copy files with a creation date of May 13. The 6th and 7th fields of the 'ls -l' command are the month and day: #!/bin/...
Summary: In a ksh script I get a file with a path from another program. I need to create the file and it's directories. I know mkdir -p can make the dirs but h...
Summary: Hi, I am trying to write a unix shell script that will scan a directory - find a file with the lowest sequence number and kick of a process with that ...
Summary: You can't have two files with the same name. The OS won't allow that. Apparently there are hidden characters in one of the file names. That also hap...
Summary: Thanks, fellas. Just a couple of problems with these though. The first solution lists files with *.extension. The last two list directories along w...
Summary: What I am trying to do is to move the old files in our system to a new archive forlder, these old files are ended with a date extension, which is in v...
Summary: find mydir -type f ! -name "*.*" Above command will search mydir directory tree for all regular files (will ignore directories, links etc) and that do...
Summary: Hi i want to know is there a way to create a variable where I have a multile list of files called : audit.12 audit.13 audit.14 I need to copy these fi...
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: sed 's/$/,telephone_number,revenue/' file > new_file mv new_file file or with perl (file.bak is created): perl -p -i.bak -e "s/$/,telephone_number,re...
Summary: I hv a file with following entry. dn: uid=isgwpsadmin1, ou=adminaccount, o=xyz, dc=com owner: uid=da87793,ou=account,o=xyz,dc=com dn: uid=AdminPasswor...
Summary: If nothing has changed in the directory since your mistake, you might be able to recover them with fsdb. That is an iffy proposition and I'd say the ...
Summary: I don't use PGP myself but if I try to decrypt an unencrypted file with gpg it says: gpg: no valid OpenPGP data found. gpg: decrypt_message failed: eo...
Summary: The following code will pass a file (with no changes) by keeping the last two lines in its buffer. The N appends the second line, and the P and D wil...
Summary: Hi. I am relatively new to UNIX. Say I have a file named "database" with names and addresses in it. And each field is separrated by a bar "|". How exa...
Summary: I am looping through a directory. I want to filter files with extensions .rej and .rejMsgs. How should i do it? To me it would be something like If fi...
Summary: Your file name with: int SEED = ...; is input.txt In CHANGE_SEED file: #!/bin/ksh sed "s/int SEED = [0-9]*;/int SEED = $1;/" input.txt Run it: $ ./C...
Summary: Guys, I am new to UNIX world and really need help of your expertise. I have file with each line of fixed length eg., DT00123 1234 FFF 56565 DT00923XX3...
Summary: Hi there, I use cat *.txt > junk.lst to concatenate all the txt file in current directory into a big file called junk.lst for later processing, my pro...