2 shell script tagged "readline"
- Shell Script To Write Odd and Even Line To Respective Files
- Shell script utility to read a file line line
A shell script that, given a file name as the argument will write the even numbered line to a file with name evenfile and odd numbered lines in a text file called oddfile.
#!/bin/bash
# Shell script utility to read a file line line.
# Once line is read it can be process in processLine() function
# You can call script as follows, to read myfile.txt:
# ./readline myfile.txt
# Following example will read line from standard input device aka keyboard:
# ./readline
# ———————————————–
# Copyright (c) 2005 nixCraft <http://cyberciti.biz/fb/>
# This script is licensed under [...]
Viewing 1-2 of 2 shell scripts. ( see all popular tags )

