work for a small ISP (Internet Service Provider) and we are using Linux and Unix-like operating system with bash shell. I want to write a shell script to parse the csv file line by line. Then line must be parse again field by field. The sample input file is as follows:
I need to extract each of these example.com,username,groupname,homedir,md5password,permission,secondarygroup fields and passed to the different system utilities. How do I write a shell script to automate this task and use the bash shell to parse a text file?
would like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:
This is a test
Giving back more than we take
I want my input file with the following output:
more than we take
How do I printing lines from the nth field using awk under UNIX or Linux operating systems?
How do I extract digits only from a given string under Bash shell?
I‘m an extreme newbie to the Linux world, but any time I try to get play files according to a playlist file using mplayer command line it turns up this error:
$ mplayer playlist.m3u
MPlayer SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Cache fill: 0.00% (44 bytes)
Exiting… (End of file)
How do I fix this and play music without using GUI tools?
ow do I grep from a number of files and display the file name only? How do I force the grep command
to display the filename before the matching lines in its output?
How do convert tabs to spaces in a file using a bash shell?