10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
I have a list of file names in array. But this file names are not exact. so i want to search whether a file exists or not using regular expression.
code snippet:
if ;
then
echo "File exists"
else
echo "File does not exits"
fi
over here "*EQST*" should be treated as a regular... (4 Replies)
Discussion started by: Ganesh_more
4 Replies
2. Shell Programming and Scripting
Hi Freinds ,
I have 2 files .
File 1
|nag|HYd|1|Che
|esw|Gun|2|hyd
|pra|bhe|3|hyd
|omu|hei|4|bnsj
|uer|oeri|5|uery
File 2
|nag|HYd|1|Che
|esw|Gun|2|hyd
|uer|oi|3|uery
output : (9 Replies)
Discussion started by: i150371485
9 Replies
3. UNIX for Dummies Questions & Answers
I need to check if an entry input by the user is in a file. If so, I need to run a command, and if it does not exist then it should output entry does not exist.
So I have so far...
echo "Enter record:"
read record
//command || //command
Can I use an if statement to do this? (3 Replies)
Discussion started by: itech4814
3 Replies
4. Shell Programming and Scripting
Hi, Unix Gurus,
I need find records in a file which first 5 character is empty.
eg.
12344567 233 467
345 435 456
2334455555 4t54 eee
233445555 444 aaa
eerer eree ereei want to find
345 435 456
eerer eree eree:wall:
Thanks in advance (2 Replies)
Discussion started by: ken002
2 Replies
5. UNIX for Advanced & Expert Users
my file contain 1 to 100 numbers and i want to display 50 to 60 numbers in a seperate file. how many ways this is possible in unix:confused: (3 Replies)
Discussion started by: mailkrissh
3 Replies
6. Solaris
Hi all,
to find a user whether he had an account on AIX box i will use commands like
"finger" , "lsuser".
I am new to solaris and we are migrating to solaris.
now i am using " more /etc/passwd | grep -i <UserID> " to find a user present in that solaris box or not.
Are der any similar... (9 Replies)
Discussion started by: firestar
9 Replies
7. Shell Programming and Scripting
I will have to process multiple files with same name everyday.
My requirement is:
If on a certain day I see that filename.txt exists then the contents of the filename.txt would be added/append
to the former file contents.Each time it sees the file the content would be added.But the header ... (8 Replies)
Discussion started by: RubinPat
8 Replies
8. Shell Programming and Scripting
I want to find the size of particular file exists in a particular directory
and i wnt to zip it.
In the below mentioned code it should check the MQ.log in the
particular directory.Please correct my code so that it will check
for particular MQ.log but i could not able to check whether
the... (9 Replies)
Discussion started by: Balachandar
9 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I need to compare todays file to yesterdays file to find deletes.
I cannot use comm -23 file.old file.new.
Because each record may have a small change in it but is not really a delete.
I have two delimited files. the first field in each file is static. All other fields may change. I... (2 Replies)
Discussion started by: eja
2 Replies
10. Shell Programming and Scripting
is there a direct command to find whether directory is empty, -s option doesn't seem to work.
Mark. (2 Replies)
Discussion started by: markjason
2 Replies