Search Results

Search: Posts Made By: thungmail
4,056
Posted By thungmail
question about wc command in Unix
Hi all
I want to give a command which outputs the number of files have name ending in .pdf(output is just number). Can somebody help me
1,672
Posted By thungmail
question about testing in shell programming(modifications were made)
In folder A i have a file "a' and text file named infile00.I would like to do redirection :a<infile01.
There is a code to do this

#get a file "a" in /home/A
for file in /home/A/*
do
if [...
2,000
Posted By thungmail
question about testing in shell programming
In folder A i have a file "a' and text file named infile00.I would like to do redirection :a<infile01.
There is a code to do this

#get a file "a" in /home/A
for file in `ls /home/A`
do
if...
1,649
Posted By thungmail
@krishmaths:thanks a lot. it works
@krishmaths:thanks a lot. it works
1,649
Posted By thungmail
question about testing in shell programming
I have 2 different directories. The first has 2 sub-folders A and B. The second as 2 sub-folders C and D and script named "script".There is a code of "script" to list 2 sub-folders C and D
...
2,061
Posted By thungmail
here is the new one (with modification) ...
here is the new one (with modification)

#!/bin/sh
#set an argument to be a specified path
a=/home/tuan/Desktop/Shell_programming/directory/list
#check if an argument is a directory
if [ ! -d...
2,061
Posted By thungmail
question about testing in shell programming
Hi i would like to write a "script" which takes a directory as an argument and the script will output the content of a file in this directory.Here is my code

#!/bin/sh
#set an argument to be a...
1,805
Posted By thungmail
question about testing in shell programming
I created a file named q2.c in /home/tuan/Desktop/Shell_programming. I coded a script named "test" to check whether the file existed or not. My code :

#!/bin/sh...
2,559
Posted By thungmail
@joeyg:thanks for your advice. It is helpful.
@joeyg:thanks for your advice. It is helpful.
2,559
Posted By thungmail
need help for shell programming
My purpose was to print out all of name of students in a list.First of all,I created a file name "List" in /home/tuan/Desktop/Shell_programming as below

Tom
Henry
Ben
Linda
Marry


And my...
1,906
Posted By thungmail
question about about Shell programming
1.if [ "$1" ]
2.then
3. # save the number of args and first argument in variables.
4. num_args=$#
5. id="$1"
6. echo "$id"
7. #echo "$1" > crapfile.txt
8. ...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 10:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy