10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
i want to create a sha256 hash for a file and copy the source file under new filename as :
sha256hash_sourcefilename
Input : sha256sum FILE
Example : sha156sum mounttest.123
Output HASH_FILE
How to do this ?
e.g.:
... (1 Reply)
Discussion started by: bdittmar
1 Replies
2. UNIX for Beginners Questions & Answers
Hi ,
Please help me out for the below problem -
I have 2 files in a directory -
$ ls -ltr
total 4
-rwx------+ 1 abc Domain Users 615 May 31 17:33 abc.txt
-rwx------+ 1 abc Domain Users 0 May 31 17:33 ll.sh
I want to write the filename of abc.txt along with the directory to the... (2 Replies)
Discussion started by: Pratik4891
2 Replies
3. Shell Programming and Scripting
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies
4. Shell Programming and Scripting
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to make a script that copy a file that has a backslash in the filename.
What I'm doing wrong?
The flename is: 1300212744.H786972P30819.ns1.cybernet.com.br,S\=6313:2,
My script
ParteA="1300212970.H27173P31627.ns1.cybernet.com.br,S"
ParteB=\\
ParteC="="
ParteZ=":2,"... (15 Replies)
Discussion started by: Ronaldo
15 Replies
6. Shell Programming and Scripting
Hi,
I have in the one folder file and directory that have same name. I need make diff from first directory where exists file in folder FOLDER/filename and second file where not exist folder, but FOLDER is filename. I use -N switch for create new file. Scripts report: Not a directory
Sample:... (2 Replies)
Discussion started by: tomix
2 Replies
7. Shell Programming and Scripting
Hi,
I have to copy last modified Directory to another directory.How can i Do using pipe or redirect
cp -R 'ls -lrt|tail -1' test is not working.
please help. (3 Replies)
Discussion started by: shaveta
3 Replies
8. Shell Programming and Scripting
Hi,
I've got a large to task to do, which I've broken into three section. I'm just stuck on one of the sections.
I have to change the end of a filename from .txt to .doc in a directory. So if I have a directory called "folder1" and two files contained in it called "file1.txt" and "file2.txt",... (7 Replies)
Discussion started by: TeddyP
7 Replies
9. UNIX for Dummies Questions & Answers
I am trying to create files with special characters in its filenames for testing purposes. This is on a Linux RHEL4 but this should also be applicable on a Unix shell.
I am able to create files with special characters in the filenames...e.g.
cp -pv foo.gif \*special.gif
cp -pv foo.gif \... (6 Replies)
Discussion started by: sqa777
6 Replies
10. Shell Programming and Scripting
hi
find /home -type f -atime +5
shows me files like :
home/test/aaa.txt
home/test/bbb.html
How can I get the file name
I mean only aaa.txt and bbb.html (19 Replies)
Discussion started by: tjay83
19 Replies