10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Folks,
I need a UNIX script which will copy files(Table wise) from source directory to destination directory (Under table directory) and also creates 2 additional files after getting copied to destination directory with extension .pdy and .ldy , . pdy file will be zero byte file should get... (4 Replies)
Discussion started by: Nicks1412
4 Replies
2. Linux
hi,
i want to create a dummy file even if the path to that file is not exist as follows.
suppose, in my working directory 2 files are there. and
i create one more file which is exist as follows
# pwd
/home/satya
# ls
file1.txt file2.txt
# echo dummy > /home/satya/file3.txt
# ls... (3 Replies)
Discussion started by: snreddy_gopu
3 Replies
3. Shell Programming and Scripting
Hello. My latest project has me with the need for the following script. Basically, any directory that includes a .jpg file needs to also have a ".picture" file created (if it doesn't exist). Here's an example of what I need.
/mnt/user/Pictures/2011/Hawaii - 2011/.picture... (11 Replies)
Discussion started by: Davinator
11 Replies
4. Shell Programming and Scripting
Hey guys, i have a file a.txt and i need to insert a dummy data into it as per the below pattern..
bash: cat a.txt
1234,34
3434,45
4545,56
3434,56
Now i need the file in the below pattern
1234,34,a0001,C_01
3434,45,a0002,C_02
4545,56,a0003,C_03
3434,56,a0004,C_04
here the count of... (3 Replies)
Discussion started by: jaituteja
3 Replies
5. UNIX for Dummies Questions & Answers
I am trying to use 'cut' to get a line from my file. But it seems that 'cut' recongnizes TAB as default. My file uses space instead. So 'cut' doesn't work.
Anybody can tell me how to change the default from TAB to space ? Or how to transform a space-delimited file into tab-delimited file??... (2 Replies)
Discussion started by: kaixinsjtu
2 Replies
6. Shell Programming and Scripting
Hi,
How can I plug dummy data into files that are zero bytes ?
Here is a sample script for removing the files I think.
find /path/to/directory -size 0 -type f -exec rm -f {} \;
I am not sure how to change it to echo "dummy" > zerobyte.txt. Any suggestions?
Here's the farthest I got:... (2 Replies)
Discussion started by: ihot
2 Replies
7. UNIX for Dummies Questions & Answers
I have a website but I do not for the life of me know how to upload using unix based command lines. Can someone send me a good site that has these commands. That and I am curious to know more about command line based interfacing. :D Curious Dummy (1 Reply)
Discussion started by: highway39
1 Replies
8. Shell Programming and Scripting
This drive me nut, any can show me how to do it ??
str1='Case Modify 10001 20002 30003 40004|Report Create 3417176211|Case Modify 10002 20002 30003 40004'
and str2='Case Modify 10001'
if str1 ~ str2
then str1='Report Create 3417176211|Case Modify 10002 20002 30003 40004'
Thanks, (8 Replies)
Discussion started by: sabercats
8 Replies
9. Shell Programming and Scripting
Hi,
I want to ask if anyone has any ideas, why the batch file i created to transfer files on my desktop doesn't run after i put this line in /etc/passwd and any idea to overcome it ? Thanks
user:!:xxx:xxx::/home/user:/usr/local/bin/ssh-dummy-shell (2 Replies)
Discussion started by: DarReNz
2 Replies
10. UNIX for Dummies Questions & Answers
I am ftp-ing (I think) files from one computer to another and I am using the Put command to do this. Is there a way for me to string these commands together and Put several files at once?
Thanks,
Amy (4 Replies)
Discussion started by: amygdala
4 Replies