10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I'm on HP Unix and in a Job, I tried to extract all files from a folder, and replace the extension (.xxxx) by '*' , remove duplicates and move the result in a file..
Example :
Folder has : ABC, CCC.txt, CCC.sf, CCC.sfd, DDD
I need to generate and output file with :
... (6 Replies)
Discussion started by: royinfo.alain
6 Replies
2. Shell Programming and Scripting
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
3. Shell Programming and Scripting
Dear all
sorry for bothering you wityh dumb question but I am stucked with an issue.
Well, I am trying to loop over files in folder, make an operation and rewrite the output.
Example:
INPUT
file1.txt
file2.txt
file3.txtMy command (doesn't work!!)
for file in /path/to/*.txt
do command... (13 Replies)
Discussion started by: giuliangiuseppe
13 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I want to fetch the files based on .done file and display the .csv files and Wil take .csv files for processing.
1.I need to display the .done files from the directory.
2.next i need to search for the .Csv files based on .done file.then move .csv files for the one directory
... (2 Replies)
Discussion started by: girija.g6
2 Replies
5. Shell Programming and Scripting
Hello all,
I need some help please.
I got file1 with names.
foo bar
foo bar
foo bar
foo bar
foo bar
and I got file2 with some text
some text
some text
#KEYWORD
some text
some text
some text (3 Replies)
Discussion started by: stinkefisch
3 Replies
6. Shell Programming and Scripting
Hi there,
I have a small question (most like a true beginners question :) ).
In a script I have a filename stored in variable (vFile). Through the an input parameter this variable gets its value (for instance cookie.txt).
Two new variables are created with the value of vFile, but with a... (2 Replies)
Discussion started by: rberkers
2 Replies
7. Shell Programming and Scripting
hello,
i have the below while loop wherein i am passig list of filenames to be scped. this is in unix ksh -
filenamelist.txt has list of files names, including .dat and .txt files
but i want to pass only the .txt filenames to the while loop so that only .txt files gets scped.
how can... (4 Replies)
Discussion started by: billpeter3010
4 Replies
8. Shell Programming and Scripting
Hi Friends,
I am using the following command
for i in `ls $PWD`; do cat $i > test && mv test $i; done
But, I want to execute another command and write the output to another file with different extension but same name, like this
I tried using this
for i in `ls $PWD`; do... (2 Replies)
Discussion started by: jacobs.smith
2 Replies
9. UNIX for Dummies Questions & Answers
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
Discussion started by: Deekay.p
2 Replies
10. Shell Programming and Scripting
Hi everyone,
I want to know how to replace file extensions. For example how do i go about replacing all *.c files in a directory to *.cpp
I think we can do it either with "find" commad or with special registers. I tried to use the following command
mv \(.*\).c \1.cpp
but it is giving... (7 Replies)
Discussion started by: rameshonline
7 Replies