02-08-2005
Easy script
Hi there,
Could you please help me with that ?
I want to grep a specific string in an .xml file and then rename the file according to the string I found.
How can I do that for many files. Because all the files have similar names but different time stamps I want to name them so it's easy to know what is going on.
Thanks for your help in advcance
Aris :-)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
a script, cheer that prints its parameter as shown in the example below.
eg:
$ cheer U N I X
Give me a U!
U!
Give me a N!
N!
Give me a I!
I!
Give me a X!
X!
#!/bin/sh
for letter
do
echo "Give me a $letter!";echo "$letter!"
done
this is the code i used for the above script (2 Replies)
Discussion started by: problems
2 Replies
2. Shell Programming and Scripting
Hello guys, I need some help to solve a little problem that I have here:
I have a big file with almost 100.000 lines of data, here is an example of line:
100099C01101C00000000059399489283CREMOVISTAR_TX 010001C00000000000099069799MOVISTAR_Tx ... (7 Replies)
Discussion started by: lestat_ecuador
7 Replies
3. UNIX for Dummies Questions & Answers
Hello guys,
Forgive me if I duplicate the post but i think i make a mistake choosing the correct forum.
I need some help to solve a little problem, I have a big file with almost 100.000 lines of data, here is an example of line:
100099C01101C00000000059399489283CREMOVISTAR_TX ... (3 Replies)
Discussion started by: lestat_ecuador
3 Replies
4. UNIX for Dummies Questions & Answers
Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some.
I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies
5. Shell Programming and Scripting
I've began my journey at 7:50, and at this time i've lost 40 minutes in this easy but :confused::eek:-script.
Someone can help me ? I want to see the differences beetween all xml files in two directories (they must be equals), and this is my script:
#!/bin/bash
dir1="261108"... (5 Replies)
Discussion started by: trutoman
5 Replies
6. Shell Programming and Scripting
Hi,
I am planning the following to do. On my linux system I've got different users in the /home/ directory. These users have file limitations.
So every user below the /home/ directory should get a text file in a seperate folder /home/$user/files/ which tells him how many files he is already... (2 Replies)
Discussion started by: crusher
2 Replies
7. UNIX for Dummies Questions & Answers
Hi to all,
first of all,i am working on MINIX 3 OS.
I want to create a bash script file,which will create a list of files(not directories) that have been modified one specific day (i.e today) under my home directory.
thank you very much!! :) (8 Replies)
Discussion started by: kostis1904
8 Replies
8. Shell Programming and Scripting
Hello every one :D
I am very new in Linux ... that why I do not have any idea to write the script :confused:
I am trying to read some tutorial , but I do not have enough time to do it !
because I have to submit my project results in next Wednesday
I need your help to write script !
I will... (2 Replies)
Discussion started by: seereen
2 Replies
9. Shell Programming and Scripting
:wall:I've this simple code:
STF=/opt/aaa
cat $STF | nice sort -u > $STF.new && mv $STF.new $STF
Which works until today. What happened is that this script has been corrupted the FS, so I've to use fschk to repair the filesystem.
I presume the move command executed just a little too early... (1 Reply)
Discussion started by: accolito
1 Replies
10. Shell Programming and Scripting
Write a script, which of the directory including sources of kernel, choose files with sources in C (files with .c extension), including in name "io" with dirvers (located in random subdirectory drivers) and place their content in file FILE. (to 20 lines).
Could someone help me with this task?... (1 Reply)
Discussion started by: Czabi
1 Replies
LEARN ABOUT OPENSOLARIS
epminstall
epminstall(1) Easy Software Products epminstall(1)
NAME
epminstall - add a directory, file, or symlink to a list file.
SYNOPSIS
epminstall options file1 file2 ... fileN directory
epminstall options file1 file2
epminstall options -d directory1 directory2 ... directoryN
DESCRIPTION
epminstall adds or replaces a directory, file, or symlink in a list file. The default list file is "epm.list" and can be overridden using
the EPMLIST environment variable or the --list-file option.
Entries are either added to the end of the list file or replaced in-line. Comments, directives, and variable declarations in the list file
are preserved.
OPTIONS
epminstall recognizes the standard Berkeley install command options:
-b
Make a backup of existing files (ignored, default for EPM.)
-c
BSD old compatibility mode (ignored.)
-g group
Set the group owner of the file or directory to group. The default group is "sys".
-m mode
Set the permissions of the file or directory to mode. The default permissions are 0755 for directories and executable files and 0644
for non-executable files.
-o owner
Set the owner of the file or directory to owner. The default owner is "root".
-s
Strip the files (ignored, default for EPM.)
--list-file filename.list
Specify the list file to update.
SEE ALSO
epm(1) - create software packages
mkepmlist(1) - make an epm list file from a directory
epm.list(5) - epm list file format
COPYRIGHT
Copyright 1999-2007 by Easy Software Products, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
3 April 2006 ESP Package Manager epminstall(1)