Here is another way to do it that only uses shell behavior required by the POSIX standards:
The construct for i in {0..3} is available in a some shells, but is an extension that is not specified by the standards.
This User Gave Thanks to Don Cragun For This Post:
for loop for string to check each path file count.
can someone please help me out regarding this..
purpose is that it will gives the number of files inside the that directory..
i am bit confused in doing the loop for the above can someone plz fix.
PATH1=/home/data1
PATH2=/home/data2... (2 Replies)
Hi all,
Can somebody help me with this problem pls.
I need to extract one specific line from each files in a folder and put
the all lines extracted in a unique output file in the following format.
line extracted, respective name of file, date of file.
I´m, trying the part to extract... (3 Replies)
Production C code compiled without the dash-g option is running, and seems to be in an infinite loop. Is there a way to tell? Is there a diagnostic tool that will report what objects or what lines of code or even what functions are being executed?
Or is my best option to kill it with a dump?
... (5 Replies)
Hello All,
I would like to know and understand the difference between the below 3 IF loops and also if possible what are the different other parameters i could use other than those mentioed in the below lF LOOP conditions, appreciate your help.
Thanks,
Sam. (1 Reply)
I have files like this beginning from 082008 (MMYYYY) to 112010 (MMYYYY)
I need to fetch this files through ftp in loop. How can I achieve it?
I tried with the following code. But I'm not sure how to increment the month from 082008 to 112010.
for i in {082008 .. 112010}
... (5 Replies)
This question might be silly but its confusing me a bit:
What is the difference between handle to the thread HANDLE and thread identifier pthread_t?
---------- Post updated at 01:52 PM ---------- Previous update was at 01:48 PM ----------
Sorry I saw details and HANDLE is in windows and... (0 Replies)
Greetings,
Would anyone be able to tell me why this nested loop doesn't seem to work in any variation?
for i in {1..8}
do
echo "i is "$i
for j in {1..i}
do
echo "j is "$j
done
doneoutput is always along the lines of
i is 1... (7 Replies)
Hello All,
I was wondering how after processing a program down to the bottom of the program one can return to the only while loop in the program.
Thanx, (5 Replies)
p1=text1
p2=text2(in red color)
when i am trying to replace $p1 with $p2, content of the file from text2 become red. so when i open that file using vi its showing color code before tex2.
please suggest me how to omit that color code and make content of that file in default color? (1 Reply)
Discussion started by: Biplab
1 Replies
LEARN ABOUT OPENDARWIN
ttys
TTYS(4) Linux Programmer's Manual TTYS(4)NAME
ttyS - serial terminal lines
DESCRIPTION
ttyS[0-3] are character devices for the serial terminal lines.
They are typically created by:
mknod -m 660 /dev/ttyS0 c 4 64 # base address 0x3f8
mknod -m 660 /dev/ttyS1 c 4 65 # base address 0x2f8
mknod -m 660 /dev/ttyS2 c 4 66 # base address 0x3e8
mknod -m 660 /dev/ttyS3 c 4 67 # base address 0x2e8
chown root:tty /dev/ttyS[0-3]
FILES
/dev/ttyS[0-3]
SEE ALSO chown(1), mknod(1), tty(4), agetty(8), mingetty(8), setserial(8)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 1992-12-19 TTYS(4)