Hi there,
I am a student and currently working on a project. I have a file that contains about 50 filenames. (1.txt, 2.txt, 3.txt ...).
I would like to know how can I store these filenames into a variable using a loop?
I would appreciate if anyone can help me. Thank You.
Regards,
Bib (4 Replies)
I'm relatively new at this scripting game, just need to learn some basic stuff for data handling.
My current need is to write a script that loops through a textfile of filenames, and for each file removes the first line and re-writes that file to a new name.
In fact I could do with knowing... (1 Reply)
I have written a script that will email a generic user when a device is "offline". I would like to enhance this by having the script lookup a contact's email and automatically add it to the MAIL_LIST. I am trying to lookup and return data based on a field common in two files
File 1 ... (0 Replies)
hi all,
i am just getting in to bash scripting, so don't be too harsh...
i've created this little backup script, and it's just awfull... ugly, doesn't work like I want it to, the works. anyways, i was hoping some of you might help me improve it and learn a little in the process.
what i... (13 Replies)
Could someone please recommend a very good shell scripting book for me. I would be starting a new job that would require a very good understanding of shell scripting. Please help. (3 Replies)
Hi,
I am newbie in shell scripting
I have a file name like simple.txt which comes from Mainframe systems onto windows dir every 15 minutes daily. File name is same. Every 15 minutes it updates.
I need to write shell script to check if the file arrived every 15 min or not.
If the new file... (4 Replies)
Hi Guys, I want to create a shell script to run multiple jobs in sequence.
Explaination -
If I were to run each jobs individually I would have gone to folder - "abin"(where my shellscript is place) as follows
cd abin
abin > runappeng.sh abc001
Now, I have list of programs which are like... (8 Replies)
Howdy folks,
I'm trying to craft a log file summarisation tool for an application that creates a lot of duplicate entries with only a different suffix to indicate point of execution. I thought I'd gotten close but I'm clearly missing something.
Here's a genericized version:
A text_file... (3 Replies)
Hi all,
I have drill to do and I'll very appreciate your help:
Please create a simple CSV file as follow (3 columns and 4 rows):
A,B,C
A,”B,C”,D
“A,B”,C,D
o A,B,”C,D”
- Please refer to the comma between the quotation marks as a parameter and not as a separator.
- Please provide... (3 Replies)
Please bear with me, I'm a beginner but have had some experience and decent knowledge to understand things as I read them and I'm in the process of trying to learn more. I recently inherited a UNIX server which has a bash script which is part of a crontab schedule that needs to be modified (or... (3 Replies)
Discussion started by: Danylko
3 Replies
LEARN ABOUT DEBIAN
wmiir
wmiir(1) General Commands Manual wmiir(1)NAME
wmiir - The wmii 9P filesystem client
SYNOPSIS
wmiir [-a <address>] {create | ls [-dlp] | read | remove | write} <file>
wmiir [-a <address>] xwrite <file> <data> ...
wmiir -v
DESCRIPTION
wmiir is a simple 9P filesystem client which ships with wmii, and connects to its virtual filesystem by default. wmiir is most often used
to query and issue commands to wmii, both from the command line and from its sh-based configuration scripts.
ARGUMENTS -a The address at which to connect to wmii.
COMMANDS
create <file>
Creates a new file or directory in the filesystem. Permissions and file type are inferred by wmii. The contents of the standard
input are written to the new file.
ls [-dlp] <path>
Lists the contents of <path>.
Flags:
-d Don't list the contents of directories.
-l Long output. For each file, list its permissions, owner, group, size (bytes), mtime, and name.
-p Print the full path to each file.
read <file>
Reads the entire contents of a file from the filesystem. Blocks until interrupted or EOF is received.
Synonyms: cat
remove <path>
Removes <path> from the filesystem.
Synonyms: rm
write <file>
Writes the contents of the standard input to <file>.
xwrite <file> <data> ...
Writes each argument after <file> to the latter.
ENVIRONMENT
$WMII_ADDRESS
The address at which to connect to wmii.
$NAMESPACE
The namespace directory to use if no address is provided.
SEE ALSO wmii(1), libixp[2]
[1] http://www.suckless.org/wiki/wmii/tips/9p_tips
[2] http://libs.suckless.org/libixp
wmii-3.9.2 Oct, 2009 wmiir(1)