10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the below directory I am trying to delete all lines with a .bam extention that have the pattern IonCode_ followed by an even number. I am also trying to delete all lines with a .fastq extention that have the pattern IonCode_ followed by an odd number. I was going to use find but can see all... (6 Replies)
Discussion started by: cmccabe
6 Replies
2. Shell Programming and Scripting
Hi. I m trying to figure out how to do this.
I have a directory full of files (100 files) and I want to be able to search for a string called "end" at the end of the files (last line or last 5 lines) and echo each file to say "incomplete" if not found.
This is what I have so far.
---... (4 Replies)
Discussion started by: jasonhawaii
4 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am new to shell scripting. I have a requirement as part of my job to find out null/empty values in column 2 and column 3 from a CSV file and exit the further execution of script by displaying a simple error message.
I have developed a script to do this by reading various articles... (7 Replies)
Discussion started by: tpk
7 Replies
4. Shell Programming and Scripting
Hi All,
We just need to move a set files to a Archive location and then delete the files older than 1 day.
I used the below commands respectively.
When the file exist it is working. But when the file doesnt exist, in the ouptput log file it is showing "NO MATCH". How to avoid this in... (1 Reply)
Discussion started by: krishna1234
1 Replies
5. Shell Programming and Scripting
Hi,
This question might seem bit confusing. Sorry for that.
I have tried to express myself as clear as possible.
I have a text file in following format:
abc_456_def,abc_457_def,123_458_def,abc_3_459_def,zbc_123_456_def
ybc_123_457_def,xbc_3_458def,ybc_124_457_def
I want to check the... (3 Replies)
Discussion started by: ctrld
3 Replies
6. Shell Programming and Scripting
hi,
The following mail cmd executed successfully.
mailx -s 'subject' user@company.com < testfile.dat
However When i include this mail cmd in shell script it behave odd. Getting an error message mailx comand not found. (2 Replies)
Discussion started by: zooby
2 Replies
7. UNIX for Dummies Questions & Answers
My file has
k
s
j
v
l
k
a
s
f
l
k
s
a
d
f
j
l
a
s (3 Replies)
Discussion started by: phoenix_nebula
3 Replies
8. Red Hat
Dear Friends ,
Is it possible to generate a welcome message when I give the command "ls" from a particular user's home directory in Unix/Linux platform ?
suppose , in following example ,
bash-3.00# whoami
root
bash-3.00# ls
When I give ls command then it shows the output as... (2 Replies)
Discussion started by: shipon_97
2 Replies
9. Shell Programming and Scripting
Help needed - I am sure there is something to do with tabs or white space that is killing me here..
I have a file that is generated from an oracle sql script - when I cat the file I see the below
601888725 14-AUG-08-10:20 3
601888726 14-AUG-08-10:37 ... (4 Replies)
Discussion started by: frustrated1
4 Replies
10. Solaris
I am using the "find" command below and it respond with the error message " find: cannot open /: Stale NFS file handle"
what does it mean?
what can I do about it?
Need advice, thanks.
below are the command that I enter, the respond and the error message:
root@ScripServer:/# find / -name... (1 Reply)
Discussion started by: ezsurf
1 Replies